Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement