c order = To_SQL_Order( expr as c [,sep as c] )
If expression can be converted in whole OR partically to a SQL filter, return the SQL portion, or both portions if a separator is provided.
Takes an Xbasic syntax order expression and converts it to a SQL syntax expression. If the order expression cannot be converted, returns a null string. Assume that you have an active-link table on the sample 'customers' table from Northwind. Some of the active-link fieldnames are different than the corresponding fields in the remote table (assume that 'contactname' in the remote table is mapped to 'name' in the active-link table, and that 'region' in the remote table is mapped to 'state_region' in the active-link table).
?t.to_sql_order("name + state_region") = "ContactName, Region"