String concatenation in VB6
Hi friends,
I am want to concatenate string in VB 6.I don't know how to do it can anyone help me out with this or can explain me with an example.I have tried a lot to find it over internet but it was of no use.
Thanks in Advance.
Amd 9550
915 MSI Motherboard with Intel chipset
1gb ram
300 gb HDD
Radeon 9550
Re: String concatenation in VB6
Sure i will help you out with this for that you need to use the following code as an example for you.
Dim x As String = "Con" & "caten" & "ation"
Dim y As String = "Con" + "caten" + "ation"
The preceding statements set both x and y to "Concatenation".
Re: String concatenation in VB6
There is one more way of doing it by following way.
Code:
Option Explicit
Private Sub Form_Load()
Dim strCC1 As String
Dim strCC2 As String
Dim intNBR As Integer
intNBR = 1
strCC1 = "Concat &" & intNBR
strCC2 = "Concat +" + intNBR
End Sub