NetTalk Central

NetTalk Web Server => Web Server - Share Knowledge => Topic started by: John Hickey on June 17, 2007, 03:03:22 PM

Title: Creating a simple filter
Post by: John Hickey on June 17, 2007, 03:03:22 PM
On the newsgroup, Steve Ellis asked:

How do I code a simple browse filter like

TRI:TABLETYPE='P'

Sean Cameron (CapeSoft) answered:

The entire filter expression is a string, so you need to double up your quotation marks, or use ASCII 39:

'TRI:TABLETYPE=<39>P<39>'

or

'TRI:TABLETYPE=''P'''

Using the ASCII code is a nice way of doing it as it can be a lot clearer, especially when you have a long expression with a number of string literals.