To convert an integer value to a string that represent the integer value, you need to use toString(formatstring) method.
Dim inValue As Integer
Dim strValue As String
Dim strValue1 As String
inValue = 1235
strValue = inValue.ToString("D") 'D indicates converson from integer value.
strValue1 = inValue.ToString("N") 'N indicates conversion from a number.
'if you want to the result string to dispaly thousand separator (,), use N rather than D.
Posted by: Ly Meng | post date: 02-06-2013 | Subject: VB.NET Programming Language
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: