search with apostrophe
Roger Amar
Roger at logram.com
Thu Mar 17 23:07:59 CST 2005
Hi Frank,
You are great and Valentina is great too.
I am saving much time thanks to you.
Kind regards,
Roger;
-----Message d'origine-----
De : valentina-bounces at lists.macserve.net [mailto:valentina-bounces at lists.macserve.net] De la part de Frank Schima
Envoyé : jeudi 17 mars 2005 19:41
À : Valentina Developers
Objet : Re: search with apostrophe
Just use this command in V4MD and it will do all the work:
ValentinaEscapeString (string str, integer ForRegEx )
for example:
ValentinaEscapeString(mySearchString, 0) // Not regex search
ValentinaEscapeString(mySearchString, 1) // Regex (like) search
Best regards,
Frank Schima
On Mar 17, 2005, at 11:22 AM, Roger Amar wrote:
> Thank you, Frank !
>
> So I must check if there is an apostrophe in my SQL and escape it ?
> I suppose this is available for all non-alphanumeric signs, like '?'
> or '!' ?
>
> Kind regards,
>
> Roger;
>
>
> -----Message d'origine-----
> De : valentina-bounces at lists.macserve.net
> [mailto:valentina-bounces at lists.macserve.net] De la part de Frank
> Schima Envoyé : jeudi 17 mars 2005 16:08 À : Valentina Developers
> Objet : Re: search with apostrophe
>
> Hi Roger,
>
>
> On Mar 17, 2005, at 6:36 AM, Roger Amar wrote:
>
>> When I search for a phrase with an apostrophe, Valentina XCMD cannot
>> find it.
>> Yet, I use "English" as language for the field.
>> What is wrong ?
>
> What is the SQL you are using? Are you escaping the apostrophe?
>
> This works for me:
> SELECT myField FROM myTable where myField like '\''
>
>
> Best regards,
> Frank Schima
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list