Android Question Removing The Character (") from a String

khwarizmi

Active Member
Licensed User
Longtime User
Hello all
How can I remove the character (") from a string ?
for example I have the string (book")
I was planning to use (.replace(--,--)) but I could not write the expression.
 

stevel05

Expert
Licensed User
Longtime User
You can use the constant Quote:
B4X:
Str.Replace(QUOTE,"")

Or a smartstring
B4X:
S.Replace($"""$,"")
 
Last edited:
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
thank you very much :) This solves the problem.
can I solve it with the ASCII Code ?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Like this you mean?
B4X:
S.Replace(Chr(34),"")
 
Upvote 0
Top