>ADLLS( aDllList ) > >IF TYPE( "aDllList" ) = "C" AND ASCAN(aDllList,"ShellExecute",-1,-1,1) > 0 > lLoadDll = .F. >ENDIF > >IF lLoadDll > > DECLARE INTEGER ShellExecute IN "Shell32.dll" ; > INTEGER hwnd, ; > STRING lpVerb, ; > STRING lpFile, ; > STRING lpParameters, ; > STRING lpDirectory, ; > LONG nShowCmd > >ENDIF > >lnResult =Shellexecute(0, tcCommand, tcFileName, tcParameter,tcDirectory,tnShowCommand) > >I think most of this code is overkill. No need for checking if the dll is already declared. Just declare it, if it's already declare VFP won't declare it again.