PureBytes Links
Trading Reference Links
|
Hi David and Cliff,
David asked me about the example in VBScript, here it is:
EnableScript("vbscript");
<%
Dim Input
Input = InputBox("Enter a number")
AFL("pds")=Input
%>
Cliff asked about JScript equivalent - and the answer is that
JScript does not offer these directly but only through Shell object:
EnableScript("jscript");
<%
Shell = new ActiveXObject("Wscript.Shell");
Shell.Popup( "Popup test", 0, "AmiBroker" );
%>
But this is NOT the point.
As I already wrote there is one problem
with asking for user input in AFL formulas: the message box will be displayed
as many times as the formula is evaluated -
this means 1000+ times when you scan thru whole exchange.
So the only resonable place to use above features is Commentary window.
I wrote also that I will implement the other way of asking for
user's input that will not have this annoying behaviour.
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: <cliffelion@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, May 30, 2001 3:57 PM
Subject: [amibroker] Re: AmiBroker 3.60a beta available (Win32)
> Hi Tomasz,
>
> > + AFL scripting host now implements IActiveScriptSiteWindow
> interface
> > (this enables MsgBox and InputBox functions in VBScript)
>
>
> Is there an equivalent in jscript??
> If not .. do you think that I should use VBScript instead of JScript??
>
> Cliff Elion
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|