Android Question Trim double quote and single quote from text...

MarcoRome

Expert
Licensed User
Longtime User
B4X:
    Dim test As String = $"Remove 'quote' and "double quote""$
    test = test.Replace($"'"$,"").Replace($"""$,"")
    Log(test)
 
Upvote 0

StephenRM

Member
B4X:
    [CODE=b4x]Dim test As String = $"Remove 'quote' and "double quote""$
test = test.Replace($"'"$,"").Replace($"""$,"")
Log(test)[/CODE]

Thanks so much 🙏

the above works for :
B4X:
Dim test As String = $"Remove 'quote' and "double quote""$

But in my case, the text feed is from Database, so when ever the double quote or single quote appear, I want to Trim.

I tried the method that Klaus mentioned about QUOTE,
I tried Chr(34) and Chr(39), no result.
 
Upvote 0
Top