Hello all,
I'm trying to set a Labels text with a First Name and a Last Name. The following line of code crashes the app.
However if I use only the FName OR the LName then it works. But never with both or with the space in between
Also, I tried to concatenate the two variables into a string, but that also crashes
So obviously I am doing something wrong when trying to concatenate these. Any help would be greatly appreciated!
Thank you!
Tim
I'm trying to set a Labels text with a First Name and a Last Name. The following line of code crashes the app.
B4X:
lbl_welcome.Text =FName + " " + LName
However if I use only the FName OR the LName then it works. But never with both or with the space in between
B4X:
lbl_welcome.Text =FName
lbl_welcome.Text =LName
lbl_welcome.Text =FName + " " + LName <== crashes
lbl_welcome.Text =FName + LName <== crashes
Also, I tried to concatenate the two variables into a string, but that also crashes
B4X:
Dim s As String
s = FName + LName <== crashes
So obviously I am doing something wrong when trying to concatenate these. Any help would be greatly appreciated!
Thank you!
Tim