This is the 'ToString' command.
Dim intYahoo As Integer = 8 Dim strYahoo As String = intYahoo.ToString
This is the 'CStr' command.
Dim intYahoo As Integer = 8 Dim strYahoo As String = CStr(intYahoo)
Both of these do the same thing when converting.
Dim intYahoo As Integer = 8 Dim strYahoo As String = intYahoo.ToString
Dim intYahoo As Integer = 8 Dim strYahoo As String = CStr(intYahoo)
Programming II
Advanced Relational Database
I like the explanation and the flow. However, I would like to see more complete code demonstrating the use of each way though:
ReplyDeleteDim intYahoo As Integer = 8
Dim strYahoo As String = CStr(intYahoo)
or
Dim intYahoo As Integer = 8
Dim strYahoo As String = intYahoo.ToString