I'm having difficulty setting the proper filter string to SetFilter().
I'm trying to filter my dataset by getting all last names that begin with a certain letter.
Here is my code:
ids_lastnames.SetFilter("last_name like '"+ as_char +"'"
as_char = A%
When I debug this setfilter returns -1.
I've tried, for example, Left(last_name,1) = as_char as the filter string and I get the same error.
What would be the proper string format for SetFilter() to get all last name like 'A%'?
I'm using PB6.5 and Sql Anywhere as the data base
Keith
I'm trying to filter my dataset by getting all last names that begin with a certain letter.
Here is my code:
ids_lastnames.SetFilter("last_name like '"+ as_char +"'"
as_char = A%
When I debug this setfilter returns -1.
I've tried, for example, Left(last_name,1) = as_char as the filter string and I get the same error.
What would be the proper string format for SetFilter() to get all last name like 'A%'?
I'm using PB6.5 and Sql Anywhere as the data base
Keith