i want to conditionally run the vbscript. there is no info that states that i cannot run a vbscript conditionally within a afl.
is that the issue? --- In [email protected], [EMAIL PROTECTED] wrote: > > Please show where in the help files you found that script. > > You can't have the EnableScript( "vbscript" ); be the result of an if statement. > > On 9/21/08, murthysuresh <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > > > >
