>Thank you George. The code snippet works. One question, I tested the code using both Win32API and Kernel32 dlls, and the result is the same. Should I assume that they are using the same Windows API function?
Yep,
The Win32API represents a number of DLLs that VFP searches to find the entry point. Kernel32 is among these.
George
Ubi caritas et amor, deus ibi est