Probably the real tx1 or tx2 contains some special characters, such as vbNullChar or Chr(0).
Try to fix the strings using something like tx1 = Replace(tx1, vbNullChar, " ").
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, my Visual Basic 6 programs are running under Win11.
Connecting strings is working properly:
txt = "abc" & "def"
The result is "abcdef"
BUT if I connect two string-variables the second part disappears.
tx1 = "abc"
tx2 = "def"
txt = tx1 & tx2
under Win 11 the result is only "abc".
Is there any other runtime library necessary or is there any other solution?
Probably the real tx1 or tx2 contains some special characters, such as vbNullChar or Chr(0).
Try to fix the strings using something like tx1 = Replace(tx1, vbNullChar, " ").