How to convert int to string in VB.NET

2 Answers

0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		Dim n As Integer = 6
 
		Console.WriteLine("VB " + CStr(n))
	End Sub
End Module



' run:
'
' VB 6
'

 



answered Jul 11, 2021 by avibootz
0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		Dim n As Integer = 6
        Dim s As String = n.ToString()
 
		Console.WriteLine("VB " + s)
	End Sub
End Module



' run:
'
' VB 6
'

 



answered Jul 11, 2021 by avibootz

Related questions

2 answers 116 views
116 views asked Jun 17, 2022 by avibootz
3 answers 265 views
1 answer 132 views
2 answers 315 views
1 answer 185 views
1 answer 162 views
...