NetTalk Central

Author Topic: Creating a simple filter  (Read 14324 times)

John Hickey

  • Administrator
  • Newbie
  • *****
  • Posts: 47
    • View Profile
    • Email
Creating a simple filter
« 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.