Q qsrtech Active Member Licensed User Longtime User Feb 21, 2014 #1 Pls try and add a "Quoted" and "Quoted2" function to the string object eg. dim s as string dim sql as string s="Something" sql=s.quoted 'returns "Something" sql=s.quoted2("'") ' returns 'Something' quoted2 allows the original string to be wrapped with any string Last edited: Feb 21, 2014
Pls try and add a "Quoted" and "Quoted2" function to the string object eg. dim s as string dim sql as string s="Something" sql=s.quoted 'returns "Something" sql=s.quoted2("'") ' returns 'Something' quoted2 allows the original string to be wrapped with any string
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2014 #2 You can easily create such sub: B4X: Sub Quoted(s As String) As String Return """" & s & """" End Sub
You can easily create such sub: B4X: Sub Quoted(s As String) As String Return """" & s & """" End Sub