[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scripting question



PureBytes Links

Trading Reference Links


Hi All,
 
Well, I have made it about as simple as possible, and it still 
doesnt work. I am just trying to pass a variable to the script and back again. 
Can anyone tell me why I get an AFL syntax error at the line indicated below? 
Thanks very much!
 
Steve
 
************************************
 
myvar = 5;
 
EnableScript("vbscript")<%Function 
Myfunc(myvar2) Myfunc = myvar2End Function%>
 
script = 
GetScriptObject();         // 
<-  AFL syntax error here at "script" (Column 6)
ValueFromScript = 
script.Myfunc(myvar);