N
Niklas Östergren
Hi!
Is it possible to check either the value of an array that hasn´t been
ReDim:ed yet. OR is it possible to check IF an array have been ReDim:ed and
appended data or not?
I´m using a global array which I ReDim:ed and append data to IF a table have
any records. Sometimes the table do NOT and if so I don´t ReDim the array
since it´s not going to be used.
The array is used in a wizard to store the primary key´s for newly added
records and if the user deside to go to the previous form or abort the
wizard then I have to know which records I need to delete, which is the
records with the primary key´s stored in the global array.
One way I could do is offcourse is to allways ReDim the array to ReDim
glngarrFamilyMemberID(1) and then append data glngarrFamilyMemberID(0) = 0
and then when I need it I ReDim it again and do NOT Preserve stored data.
Since this make´s it possible for med to check if index 0 of the array
contain´s 0 or someting else.
Or maby some of you have any better idé of how I shall solve this?
But my Q right now is:
1.) Is it possible to check if an array have been ReDim:ed or not?
TIA!
// Niklas
Is it possible to check either the value of an array that hasn´t been
ReDim:ed yet. OR is it possible to check IF an array have been ReDim:ed and
appended data or not?
I´m using a global array which I ReDim:ed and append data to IF a table have
any records. Sometimes the table do NOT and if so I don´t ReDim the array
since it´s not going to be used.
The array is used in a wizard to store the primary key´s for newly added
records and if the user deside to go to the previous form or abort the
wizard then I have to know which records I need to delete, which is the
records with the primary key´s stored in the global array.
One way I could do is offcourse is to allways ReDim the array to ReDim
glngarrFamilyMemberID(1) and then append data glngarrFamilyMemberID(0) = 0
and then when I need it I ReDim it again and do NOT Preserve stored data.
Since this make´s it possible for med to check if index 0 of the array
contain´s 0 or someting else.
Or maby some of you have any better idé of how I shall solve this?
But my Q right now is:
1.) Is it possible to check if an array have been ReDim:ed or not?
TIA!
// Niklas