EscapeString
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Aug 8 12:25:33 CDT 2007
On 7/8/07 11:04 PM, "Steve Albin" <steve at steve-albin.com> wrote:
Hi Steve,
> Here's what the WIKI says:
>
> res = Valentina.EscapeString( "Valentina's (day)", 0 )
> // res is "Valentina\'s (day)"
>
> res = Valentina.EscapeString( "Valentina's day", 1 )
> // res is "Valentina\'s \(day\)"
>
> Of course, for REALbasic, the second parameter must be a boolean, not an
> integer.
>
> Am I doing something wrong? I have the following:
>
> nameStr = Valentina.EscapeString(pText,bool)
>
> I enter Valentina's (day) into pText but regardless of whether bool is true or
> false, I get "Valentina\'s (day)". The parens are not escaped even when the
> second parameter is set to true.
SECOND PARAMETER is deprecated.
Now no difference for LIKE and REGEX.
Hardly remember why now ...
> This is on the Mac with V4RB 3.01.
> Am I reading the docs incorrectly?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list