Parameter | Description |
---|---|
iField | Table column to create statement for |
sSearch | Search string |
A LIKE string to be used in the WHERE clause of an SQL statement.
Function SQLStrLike Integer iField String sSearch Returns String
Call: | Get SQLStrLike iField sSearch to StringVariable |
This is a helper function that will create an SQL LIKE string for a table column and a target value to be used in the WHERE clause of SQL statements
SQLStrLike will always add the N prefix to the result string, making this function work when used against any backend and Unicode data.
For example, this sample would return the value "Customer.Name LIKE N'%ab%'" in sFilter.
Get SQLStrLike field Customer.Name "ab" to sFilter