PureBytes Links
Trading Reference Links
|
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@xxxxxxxxxx>
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 --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/
|