DECLARE INTEGER ShellExecute IN "Shell32.dll" ; INTEGER HWND, ; STRING lpVerb, ; STRING lpFile, ; STRING lpParameters, ; STRING lpDirectory, ; LONG nShowCmdis not executed before
ShellExecute( ....or CLEAR DLLS is executed between
ShellExecute( .... FUNCTION ShellExecute (tHWND, tlpVerb, tlpFile, tlpParameters, tlpDirectory, tnShowCmd) DECLARE INTEGER ShellExecute IN "Shell32.dll" ; INTEGER HWND, ; STRING lpVerb, ; STRING lpFile, ; STRING lpParameters, ; STRING lpDirectory, ; LONG nShowCmd RETURN ShellExecute (tHWND, tlpVerb, tlpFile, tlpParameters, tlpDirectory, tnShowCmd ) EndfuncDue to the way VFP calls functions, the FUNCTION is called only if the DLL is not declared. So if cleared, it's auto declared again.