Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comma's and List Boxes

Status
Not open for further replies.
Nov 14, 2000
31
0
0
AU
I'm adding information into a list box but some fields have commas in them. The list box then decides to break the line at the comma and puts it on the next line. Can I stop it from doing this.

e.g.

listbox.additem "chucky\, chuckster"

becomes 2 entries in a listbox

chucky
chuckster

but i want it to be a single entry in listbox.

chucky\, chuckster

tia

chuckster

 

Probably because you are using a ListView control, with it's View property set as "icon", and not a ListBox control, as your control's name implies.....

If you want to use the list view control, set the View property to "2 - lvwList" [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top