Can someone explain to me the difference between the 2. Also, if my List contains 5 Items, and I remove 1 of them, using any method (removeitem or removelistiem), it does remove it. But, my ListCount is still @ 5. Is there a way for me to arrange the count?
I have the following code:
for nVar = 1 to .List1.ListCount
if MyData = .List1.ListItem(nVar)
MessageBox('Cannot duplicate Data')
endif
next nVar
Now, when I delete a row, and the user tries to input more data, somehow, it says it is duplicate, eventhoug, it is not in the listbox...
p.s. After the user deletes i issue:
thisform.List1.Refresh()
Please help
Thank you in advance! Ali Koumaiha -)
I have the following code:
for nVar = 1 to .List1.ListCount
if MyData = .List1.ListItem(nVar)
MessageBox('Cannot duplicate Data')
endif
next nVar
Now, when I delete a row, and the user tries to input more data, somehow, it says it is duplicate, eventhoug, it is not in the listbox...
p.s. After the user deletes i issue:
thisform.List1.Refresh()
Please help
Thank you in advance! Ali Koumaiha -)