>>If you would, please try the following:
>>DECLARE INTEGER GetLastError IN Win32API
>>* If the call fails, issue...
>>lnerror = GetLastError()
>
>Yes I tried out and lnerror returns 0, :-(
>
>>I won't be able to look at this until the morning (EDT), but I'll look at the codde and try to figure out what's going on.
>
>I await for your test (remember is a network volume), thanks.
You have to have declared GetLastError()
prior to the event that causes the error, otherwise, the DECLARE...DLL will clear the error pending. IOW, declare GetLastError()
before making the API call, and preferably, don't use the catchall Win32API, use KERNEL32.DLL instead, which is the actual provider (the Win32API catchall actually searches several .DLLs for the DLL function, which can be bad with GetLastError(), since the attempt to find the API function will create and clear an error status.)