So, after doing some investigation of error "Operator does not match operand type" I've came up with this: in VFP source code I have this kind of contruction : execsql("select dokid from docs","tlb") - procedure queries through Firebird ODBC driver field DOKID (TYPE BIGINT) and puts result into table tbl. So in Windows a type of DOKID field in "tbl" is NUMERIC (VARTYPE()="N") and in WINE it has a type of CHARACTER (VARTYPE()="C" Are ther any suggestions ?