In external JS file use "new ActiveXObject" instead of CreateObject().
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "gunovanengel" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, December 27, 2006 9:59 PM Subject: [amibroker] Please help me with this java script > Hi, > > I am trying to change the dataSource with the js script below. > I keep getting the error Object expected code 800a138f > What am I doing wrong > > Regards > Guno > > AB = CreateObject("Broker.Application"); > sts = AB.Stocks(); > Qty = sts.Count; > for( i = Qty - 1; i >= 0; i = i - 1 ) > { > sts.DataSource = 0; > } > > > > > > 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 > > > > >
