Hi Charles,
when did you introduce "redim" in OxygenBasic? I did some experiments and redim seems to work quite nice.
Roland
include "$/inc/console.inc"
redim int a[5]
a = {1,2,3,4,5}
printl
for x=1 to 5 : print a[x] " " : next
printl
redim int a(10)
for x=1 to 10 : print a[x] " " : next
printl
type compound
int val1
string val2
end type
redim compound c[5]
c = {1,"this", 2,"is", 3,"a", 4,"great", 5,"feature"}
printl
for x=1 to 5 : print c[x].val1 "," c[x].val2 " " : next
printl
redim compound c(10)
for x=1 to 10 : print c[x].val1 "," c[x].val2 " " : next
printl
printl "Enter ... " : waitkey
Output:
1 2 3 4 5
1 2 3 4 5 0 0 0 0 0
1,this 2,is 3,a 4,great 5,feature
1,this 2,is 3,a 4,great 5,feature 0, 0, 0, 0, 0,
Enter ...