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

[amibroker] Please help me with this java script



PureBytes Links

Trading Reference Links

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;
}




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.28/605 - Release Date: 12/27/2006 12:21 PM