Can't escape spaces using MLstrings

gordon

Member
Licensed User
Longtime User
In process globals I have
B4X:
        Dim str As MLStr

Then elsewhere I have

B4X:
 Dim finalfrom as string
dim tmp as string
finalfrom=edtfinalfrom.text

tmp=finalfrom

str.Escape(tmp )

finalfrom=tmp

However the white spaces are not being escaped for some reason.

Equally if I try
B4X:
 str.strip(tmp)

The string remains unchanged.
The MLstring library is installed and working because I can use it to count the words in a string.
Please can someone tell me why this is. many thanks.
 
Top