To make something as the "LIKE" operator in a query, you should just assign a value to the queryRange including a wildcard.
The query framework will then change the statement into a LIKE statement. If the value does not contain a wildchard the query framework will change the statement to ==.
static void QueryBuildRange_Like(Args _args)
Query query = new Query();
queryDataSource = query.addDataSource(tablenum(CustTable));
queryRange = queryDataSource.addRange(fieldnum(CustTable, Name));
queryRun = new QueryRun(query);
custTable = queryRun.get(tablenum(CustTable));
This posting is provided "AS IS" with no warranties, and confers no rights.