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

Re: [amibroker] Re: New file uploaded to amibroker



PureBytes Links

Trading Reference Links

Correct about 11 elements of course. Quickie. Sorry for that. But I still do not understand what the difference between the size of an array and the number of elements in an array is. Forget AFL for a moment. When I create an array with one of  the popular statements like DIMENSION MyArray(10) does not give me this the same result as underneath mentioned For Loop ? I am probably missing something ...
 
Regards, Ton.
 
----- Original Message -----
From: gp_sydney
Sent: Friday, June 15, 2007 12:04 PM
Subject: [amibroker] Re: New file uploaded to amibroker

> Isn't this the same as creating an array with 10 elements ?
> for (i = 0 ; i < 11; i++) MyArray[i] = 0;

No, ignoring the fact it's actually 11 elements (ie. 0-10). That's
just filling the first 11 elements of the array, it doesn't define the
size of the array. If you tried that on a chart that only had five
bars, you'd get an array overflow error.

> How about two dimensional arrays ?

AFL doesn't directly have two-dimensional arrays, but I did see
something on the AB site once about effectively creating them using
the VarSet and VarGet functions. Looked pretty messy though.

GP

__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___