|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi ,
I need help in object collection. Can anyone please help me? I can't remove the item in the collection. These are the codes I created to add item in the collection. Do Until RSSource.EOF cCustPrice = Format(RSSource.Fields("CustomerPrice"), "#0.00") CustPrice.Add (cCustPrice) Loop These are the codes I created to remove the item but it can't work. For i = 1 To CustPrice.count List1.AddItem (CustPrice.Item(i)) CustPrice.Remove (i) Next i the cCustPRice is a double data type. thanks, dawn |
|
#2
|
|||
|
|||
|
Do you get errors?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
There's no error but the item in the collection are not being removed.
|
|
#4
|
|||
|
|||
|
Then the best I can suggest is step through your code with the debugger and try to isolate why the item isn't being removed. Maybe you have some On Error Goto ... that's hiding an error somewhere.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Problem with object collection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|