(I am trying to convert from C#.The c# syntax is
searchWord = searchWord.Trim('?','\"', ',', '\'', ';', ':', '.', '(',
')').ToLower();
)
What is the correct syntax ?
venkatesh
I think that you want to eliminate the backslash from '\"' and '\'''
> (I am trying to convert from C#.The c# syntax is
> searchWord = searchWord.Trim('?','\"', ',', '\'', ';', ':', '.', '(',
> ')').ToLower();
> )
>
> What is the correct syntax ?
Delphi doesn't use a \ as a string escape. "\"" should become '"' and
'\'' should become '''' (four single quotes).
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com
searchWord := searchWord.Trim(['?', #34, ',', #39, ';', ':', '.', '(', ')']).ToLower();