I've written a simple test custom indicator that takes a string as input. Here is the code:
Sub fracFindPlot3(FDLpath as string, input0 as double)
Dim inputs As array
Dim outputs As array
ReDim(outputs,40)
redim(inputs,2)
outputsΎ] = 10.0
inputsΎ]=input0
inputsΏ]=1.0
fracFindFunc3(FDLpath, inputs, Outputs)
plot1(outputsΎ])
End Sub
When I run it, I get the expected dialog box that allows me to enter the inputs and set the plot color and panel. For the input FDLpath, I enter "junk" (where I typed all 6 characters including the quotes into the box).
When I click on "OK" I get the following error message box.
"FDLpath ("junk") is not a valid floating value. """ in not a valid numberic character. If you want to pass string, please use "" around it."
So it is clearly seeing my quotes, yet it isn't accepting it as a string.
I tried entering a string to one of the example script files and it worked perfectly.
Why can't I pass a string to the indicator? (Murray, I emailed you a screen capture a few days ago to help make the symtom perfectly clear.)
thanks
|