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

[amibroker] Re: text book example vbscript does not work



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, waledingo@xxx 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 <money@xxx> 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
> >
> >
> >
> >
>



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

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/