Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 Simple Question, combine a string + int. Seperate with a ; ...& then write to LstBox

$
0
0
Ok so in one of my programs functions, I collect a STRING & an Integer (in two seperate variables), one after the other. Then do something with both of those.

What I want to do is.....after getting the String lets call it NAME and the string = JENNIFER. Then I want to take the Integer I have just collected lets call it NUMBER and the integer = 100001.

I want to combine NAME & NUMBER, add a delimiter ...in this case a " ; " symbol. Then add it to my listbox. Later I will save it to a text file (already have the code to do that)

So my list box should look like this, 1 line each.....after combining NAME & NUMBER

JENNIFER;100001
SANDRA;20222
DAVID;3033
ALEX;333
MICHELLE;8088888

So how do i combine both a string & an integer...while separating it with a ; ?

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>