PureBytes Links
Trading Reference Links
|
BlankHerman,
"new ActiveXObject" is a JScript-only syntax (so it can be used in EXTERNAL .JS file).
If you want to use it from AFL use CreateObject.
AB = CreateObject("Broker.Application");
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Herman
To: _AmiBroker
Sent: Saturday, August 12, 2006 3:23 PM
Subject: [amibroker] Do i need to install ActiveX?
I am trying to run this code:
AB = new ActiveXObject("Broker.Application");
AW = AB.ActiveWindow;
if( AW.ZoomToRange( FDTstr, LDTstr ) )
{
WScript.Echo("Zoom successfull" );
}
and get a syntax error on the first line,
I change computers recently, how do i know ActiveX is installed? How do I install it if it is not there?
TIA,
herman
|