Renoir,
If you are using VFP6 you can use the _ShellExecute class from the FFC. If you are using 3 or 5 you have to use the API call directly. There is an object wrapper for ShellExecute on my website in the spyin.zip file, it's under Utilities, SpyIn. There is also a more extensive article on ShellExecute under Q&A, General, Article qGEN010. As Ed said ShellExecute() is in shell32.dll. Another word of warning the function names are case sensitive in the VFP DECLARE for them. ShellExecute will be found. shellexecute or SHELLEXECUTE will not be found. When you call the function in the rest of your VFP code you can use any case that you want. Article qGEN011 talks about this in more detail.
>David, I tried the following and, likely due to my misunderstanding of API calls and associated programs, I get an error because it can't find the ShellExecute program. Is this in a fox tools library? Regards, Renoir
>
> declare long GetDesktopWindow in"win32api"
> local hDCScreen
> hDCScreen = GetDesktopWindow()
> ? ShellExecute( hDCScreen, "open", "mailto:
DavidFrankenbach@worldnet.att.net", "", "c:\", 1 )
>
>
>>declare long GetDesktopWindow in"win32api"
>>
>>local hDCScreen
>>
>>hDCScreen = GetDesktopWindow()
>>
>>>I got an error with 'hDCScreen'?