What version of KiX are you using?Maximum entry: KiX 2001 Beta has a function called UBOUND that returns the Upper BOUNDry of the array:
ie if your array is:
$array[0]=345
$array[1]=765
$array[2]=234
$array[3]=123
$array[4]=778
then
UBOUND($array)
will return 4. There are 5 entries, but number 4 is the top one. All arrays start at 0
Because they all start at Zero, DIMensioning an array with 10 elements will give you $array[0] to $array[9]. There is a misprint in the User Manual.
Global problems? Can you please post the line of code before and after this command. I have been using GLOBAL $array[10] a lot and it has always worked...
in fact, if you DIM $array[10] then try to access $array inside a UDF (User Defined Function, KiX2001 new feature) it will not work. If you GLOBAL it instead, it will.
Sometimes the error is not the line that is displayed, but the one before it. IDK why and I haven't tested this enough to properly demonstrate it (I will later though).
Hope that helped, I haven't used the DEBUG feature enough to know what it does with arrays. TBH I have never used the debug feature, sorry.
cj
------------------
cj's scripts page
cj's User Guide - 14 May 2001
chrismat@ozemail.com.au