shadow9449
Registered User.
- Local time
- Yesterday, 19:11
- Joined
- Mar 5, 2004
- Messages
- 1,037
The typical way to add an item to a list box is:
This works great if the list box is only one column. Should the list box happen to be two columns, the way it's done is:
This also works great, unless the user's string happens to contain a comma. My problem is that I have a user who put a comma in her string and the list box is parsing it as a new column. Does anyone know a way around this? I suppose that a semicolon in a string would cause the same problem.
Thanks
SHADOW
Code:
Me.lstMyListbox.AddItem Item:= strStringToBeAdded
This works great if the list box is only one column. Should the list box happen to be two columns, the way it's done is:
Code:
Me.lstMyListbox.AddItem Item:= strFirstColumn & ";" & strSecondColumn
This also works great, unless the user's string happens to contain a comma. My problem is that I have a user who put a comma in her string and the list box is parsing it as a new column. Does anyone know a way around this? I suppose that a semicolon in a string would cause the same problem.
Thanks
SHADOW