General information
Category:
Coding, syntax & commands
Title:
Preserve original column when redim array
Hey all,
is there a way to preserve the original columnar state of a one dimensional array when you redimension the array to two dimensional?
For example:
dime myarray(3)
myarray(1) = '1'
myarray(2) = '2'
myarray(3) = '3'
dime myarray(3,2)
Array now consists of this:
myarray(1,1) = '1'
myarray(1,2) = '2'
myarray(2,1) = '3'
myarray(2,2) = .F.
myarray(3,1) = .F.
myarray(3,2) = .F.
is there a command that will give me this instead:
myarray(1,1) = '1'
myarray(1,2) = .F.
myarray(2,1) = '2'
myarray(2,2) = .F.
myarray(3,1) = '3'
myarray(3,2) = .F.
keeping the values in the original column? or do I need to write a UDF to do this?
Thanks
Jon
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only