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

[amibroker] text book example vbscript does not work



PureBytes Links

Trading Reference Links

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 ;)



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/