C
Carly
Hi there,
I know that string is a reference type.
I have the following code:
Dim s As String
Dim s2 As String
s = "AAAAA"
s2 = s
MsgBox(s2)
s = "BBBBB"
MsgBox(s2)
I am not sure I understand why the second MSGBOX still shows "AAAAA"
since the two strings point to the same memory location.
Please help.
Carly
I know that string is a reference type.
I have the following code:
Dim s As String
Dim s2 As String
s = "AAAAA"
s2 = s
MsgBox(s2)
s = "BBBBB"
MsgBox(s2)
I am not sure I understand why the second MSGBOX still shows "AAAAA"
since the two strings point to the same memory location.
Please help.
Carly