DECLARE INTEGER FindExecutable IN shell32; STRING lpFile,; STRING lpDirectory,; STRING @ lpResult DECLARE INTEGER GetLastError IN kernel32 lcResult = SPACE(250) IF FindExecutable ("c:\temp\MyTest.pdf", "", @lcResult) > 32 ? Left (lcResult, AT(Chr(0), lcResult)-1) ELSE * 2 = Cannot find the file specified * 3 = Cannot find the path specified * 21 = The device is not ready * 127 = The specified procedure could not be found ? "Error code:", GetLastError() ENDIF