The VARTYPE() function was introduced in VFP 6. Is it possible that your exe is using VFP 5 runtime?
>I have a stored procedure that contains the following line of code:
>IF VARTYPE(tcKey) = 'C' where tcKey is a parameter.
>
>This has been working well for quite some time now. However, in the last few days, just out of the blue, it started failing with the following message: File 'Vartype.prg' does not exist. It happens only when running the EXE program; when running from the project, it is just fine.
>
>Any explanations???
--sb--