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

[amibroker] Re: help with Jscript



PureBytes Links

Trading Reference Links

Look in the User Guide on page 559, TJ has a good discussion with
several examples.

Reef-Break


--- In amibroker@xxxxxxxxxxxxxxx, "dkourganov" <kourganov@xxxx> wrote:
> 
> Really confused with this simple task...
> Could you please post the code string for such an creation of Wscript 
> object  and where should I insert it in my AFL formula?
> 
> With kind regards, Dmitri
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
> wrote:
> > Hello,
> > 
> > Simply in this case WScript is undefined variable.
> > 
> > WScript object is Windows Scripting Host (WSH) that is available if 
> you are running
> > from WSH (by running it either using cscript.exe or wscript.exe).
> > 
> > In AmiBroker, AFL engine is a host (not WSH), so WScript object is 
> NOT built-in.
> > You would need to create it using new ActiveXObject or CreateObject
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "dkourganov" <kourganov@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Tuesday, June 07, 2005 6:03 PM
> > Subject: [amibroker] help with Jscript
> > 
> > 
> > > 
> > > I'm not familiar with Java at all and  trying to compose simple 
> script 
> > > which delays running AFL code for a while (due to lack of such a 
> > > command in native AFL). Here is the code inside my AFL formula:
> > > 
> > > EnableScript("jscript");
> > > <%
> > > Wscript.Sleep(1000);
> > > %>
> > > ....AFL code...
> > > 
> > > Compilator gives an error with it.
> > > 
> > > Can someone explain, please, what I'm doing wrong?
> > > With kind regards, Dmitri
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 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 other support material please check also:
> > > http://www.amibroker.com/support.html
> > > 
> > > 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >




------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/