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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox help 1

Status
Not open for further replies.

WildGun

Technical User
Jan 13, 2005
15
US
Hi

I have 4 ListBoxes I am using to configure a comm port the first one selects the speed "9600" the second selects number of data bits "8" the third selects parity "N" and the forth selects number of stop bits "1". Ok here is my question, I need to display all 4 text variables in a single TextBox in the following way "9600,8,N,1" how can I append all of the variables together and comma delimit them?

Thanks for you help.

Randy
 
Text1.Text = List1.List(List1.ListIndex) & "," & List2.List(List2.ListIndex) & "," & List3.List(List3.ListIndex) & "," & List4.List(List4.ListIndex)

Insert the names of your text box and list boxes where appropriate.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top