Ray,
The @ in the declare tells VFP they are passed by reference. In the call itself the @ creates the reference.
The reason you are getting the error is because the API name in the DECLARE is case sensitive. You must use ShellExecute in the declare. In the rest of the VFP code you can use any case you want ie ShellExecute, shellexecute, SHELLEXECUTE, sHELLeXECUTE all work equally well when you make the call to the function.
>I noticed that you have variables in the declare section named @lp
and in the Shellexecute just above you have them named @lc. Is this on purpose?
>
>I'm getting an error "Can't find entry point in DLL" when I do this procedure.