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

[amibroker] Declaring array and determining size



PureBytes Links

Trading Reference Links

Apparently, I can create an array in AFL merely by a statement
such as:

a[0] = 33;

This works as well:

 a[0] = 33;
 a[2] = 34;

_TRACE("" + a[0]);
_TRACE("" + a[1]);
_TRACE("" + a[2]);

btw, the value I get for a[1] is:

 3.32455e-038

not sure why -- I would have expected 0. At any rate, can anyone tell 
me how to find the number of elements in a dynamcially created array? 
Thanks,

Gordon



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/