Hello again, I am slowly getting into programming with B4i, but I am having trouble with some simple string functions.
I have the following code
In thsi rather trivial example, I would expect the "A" characters in the text field would be replaced with 'B", but in fact, nothing changes.
Obviously I am doing something wrong, but can't work out what that something is...
Best regards
Andrew
I have the following code
B4X:
sKey = TXT_CKEY.Text
sKey.ToUpperCase
sKey.Trim
sKey.Replace("A", "B")
Msgbox(sKey, "Key")
In thsi rather trivial example, I would expect the "A" characters in the text field would be replaced with 'B", but in fact, nothing changes.
Obviously I am doing something wrong, but can't work out what that something is...
Best regards
Andrew