addarray index out of bounds
Posted: Fri Jun 18, 2004 9:31 am
To improve performance i'm experimenting with the addarray method. But nomatter what i do i allways get an "array index out of bounds" error.
The (simple) experiment code looks something like
local ax, ay as array (of usual) //dynamic arrays
ax:={1,2,3) //create x-value array + data
ay:={4,5,6} //create y-value array + data
self:odcTC:series(0):addarray(alen(ax),ax,ay) //alen() returns the length of the array 1-based.
My programming language (CA-Visual Objects 2.7a) is using 1-based arrays and not (the usual) 0-based arrays (and yes i also tried Alen(ax)-1, 2, 3 etc.).
Now on some news-groups i read that there were some issues about this when passing arrays to delphi code.
I'm using the latest V5.
TIA
Jack
The (simple) experiment code looks something like
local ax, ay as array (of usual) //dynamic arrays
ax:={1,2,3) //create x-value array + data
ay:={4,5,6} //create y-value array + data
self:odcTC:series(0):addarray(alen(ax),ax,ay) //alen() returns the length of the array 1-based.
My programming language (CA-Visual Objects 2.7a) is using 1-based arrays and not (the usual) 0-based arrays (and yes i also tried Alen(ax)-1, 2, 3 etc.).
Now on some news-groups i read that there were some issues about this when passing arrays to delphi code.
I'm using the latest V5.
TIA
Jack