D
djcamo
Hi,
I have an issue trying to remove an item from an array only having one
item.
Here's the scenario.
I use this proedure to create 3 variant arrays, one for people present
at a meeting, one for apologies and one for absentees. (max of 8
items)
strPresent = GetPrivateProfileString32(Cini, "Councillors",
"Present")
strApology = GetPrivateProfileString32(Cini, "Councillors",
"Apology")
strAbsent = GetPrivateProfileString32(Cini, "Councillors",
"Absent")
varPresent = Split(strPresent, ",")
varApology = Split(strApology, ",")
varAbsent = Split(strAbsent, ",")
If some one leaves during a meeting I remove them from the 'present'
array and add them to the 'absent' array. When they come back I want
to do the opposite.
My problem is that if I erase the 'absent' array I cannot acess it
again.
I have also tried to Redim it but this does not do what I want either,
I get an empty item, not an empty array. I did read something about
using -1 to redim but this threw up an error.
Is there any way of removing the item and still having the array
available.
Hope this is enough info.
Cheers
David
I have an issue trying to remove an item from an array only having one
item.
Here's the scenario.
I use this proedure to create 3 variant arrays, one for people present
at a meeting, one for apologies and one for absentees. (max of 8
items)
strPresent = GetPrivateProfileString32(Cini, "Councillors",
"Present")
strApology = GetPrivateProfileString32(Cini, "Councillors",
"Apology")
strAbsent = GetPrivateProfileString32(Cini, "Councillors",
"Absent")
varPresent = Split(strPresent, ",")
varApology = Split(strApology, ",")
varAbsent = Split(strAbsent, ",")
If some one leaves during a meeting I remove them from the 'present'
array and add them to the 'absent' array. When they come back I want
to do the opposite.
My problem is that if I erase the 'absent' array I cannot acess it
again.
I have also tried to Redim it but this does not do what I want either,
I get an empty item, not an empty array. I did read something about
using -1 to redim but this threw up an error.
Is there any way of removing the item and still having the array
available.
Hope this is enough info.
Cheers
David