i just cut and paste the vbscript example from the help files into my
afl and i get error. when i comment out the vbscript section, it
works fine. not sure what the issue is.
if ( s = Status( "stocknum" ) == 11 )
{
_TRACE( "No of symbols entereed at end " + NumToStr(
CountTickersInWatchList( "Group 2", categoryGroup ) ) );
ScanResults = StaticVarGetText( "ScanResults" );
if ( ScanResults != "" )
{
EnableScript( "vbscript" );
<%
buyarrayfromscript = AFL.Var( "buy" )
' get the Buy array from AFL to the
script-defined variable
AFL.Var("buy") = buyarrayfromscript
' set the Buy array in AFL from the
script - defined variable
%>
// AlertIf(True, "exec
e:\\Tradingtools\\development\\app\\helpers\\sendIM.rb" ," sending
alert " + ScanResults ,0,1);
}
}
the errors are
missing semicolon near EnableScript( "vbscript" );
which is impossible ;)