Hi all,
I have six text boxes.. I need to build a comma separated string from the six boxes. The trick is that it is possible to not use all six boxes. My issue is that I end up with extra comma's if not all boxes are used. I currently have the following:
----------------------
segString = seg1.Text & ", " & seg2.Text & ", " & seg3.Text & ", " & seg4.Text & ", " & seg5.Text & ", " & seg6.Text
----------------------
I need to either remove the commas if there is more then one near each other, or build the string differently.
Any ideas are greatly appreciated.
MDA
I have six text boxes.. I need to build a comma separated string from the six boxes. The trick is that it is possible to not use all six boxes. My issue is that I end up with extra comma's if not all boxes are used. I currently have the following:
----------------------
segString = seg1.Text & ", " & seg2.Text & ", " & seg3.Text & ", " & seg4.Text & ", " & seg5.Text & ", " & seg6.Text
----------------------
I need to either remove the commas if there is more then one near each other, or build the string differently.
Any ideas are greatly appreciated.
MDA