Hello there,
Is there a way to de-quote a string. My intension is to remove the quotes from a input string.
Thanx in advance.
-Yamini
De-quote a String
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Provided that there are no "quoted quote characters", you can simply use Convert() function.
Another technique is to remove the first and final characters using a substring technique.
You may need to trim off leading and trailing white space first. Use TrimF() and TrimB() functions, or Trim() with "B" as the third argument.
Code: Select all
Convert('"', '', TheQuotedString)
Code: Select all
TheQuotedString[2,Len(TheQuotedString)-2]
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
De-quote a String
Hello Ray,
Thank you for your suggestion.
-Yamini
Thank you for your suggestion.
-Yamini