
Using Tilde variable in query HELP
Quote:
>>Hello everyone,
>>In ObjectPal i'm using a query with a ~tilde variable.
>>If i assign the varibale with something like this: var="John, H"
>>the query result will be empty.
>>Query
>>Table | Name |
>> |CheckPlus ~var |
>>After some search i discovered that the comma will be seen as an
>>operator. That's why the query will have no result even if the name
>>"John, H" appears in the table.
>>Is there any workaround for this problem? i tried several thing, but no
>>result.
>>thanks in advance,
>>Marlon
>Put a backslash before any reserved character to render it literal.
>Such as: "John\, H"
If you are using PDOXDOS 4.5, look at the command QUOTESTRING in the
Upgrade Guide or roll your own "quoter"
Steve U
Quote:
>You would need to do this with quotes, plus symbols, backslashes
>themselves, etc.
>Good luck!
>Ken
>>Sent via Deja.com http://www.deja.com/
>>Before you buy.
, _
, | \ Steve Urbach
, | )erek
, / / / http://www.greenduck.com