Hello Tuka,
That is a clever way to get around the memory limitation.
Nate,
Tuka is right. It depends on your OS version number. In PalmOS 5.0 you have an array size of almost 12,000. Its more like 11,980 because of some overhead needed by IziBasic. Of course, your palm must be able to run OS 5.0. Read the MINOSVERSION directive in the manual.
So if you can run OS 5.0, your code would look like this:
{MINOSVERSION "5.0"}
dim a(11980)
BEGIN
'program here
END
Then to print variable z your program code would contain:
print z
...or...
a=a(26) : print a
And to print any array variable above z you could write:
a=a(1234) : print a
...or...
a=a(11980) : print a
...etc...etc
Print a(1234) is not allowed but you can perform mathematical ops like:
a(1004)=a(1000)*a(1001)/a(1003)
As Tuka said, you cannot do this:
dim test(11980)
All your array variables must be called a(n), where n is a valid number depending on your OS version, such as a(11980).
Hope this clears things up.
JoeV