>> oShellEx = NEWOBJECT('_ShellExecute',HOME() + 'FFC\_environ.vcx')
>> oShellEx.ShellExecute('http://www.levelextreme.com')
>
>I tried this, and it works great, except the browser opens "behind" my VFP window. How can I force the browser to open on "top"?
You could add code to using the API call FindWindow() to get the hWnd of the browser Window, and then call SetForegroundWindow() to force it to the top (see the API section for examples of these two API calls), or you could modify the ShellExecute() method of the FFC to open the browser maximized:
Add a line immediately before the RETURN line:
DECLARE INTEGER GetActiveWindow IN Win32API
Change the line that reads:
RETURN ShellExecute(0,lcOperation,lcFilename,"",lcWorkDir,1)
to read:
RETURN ShellExecute(GetActiveWindow(),lcOperation,lcFilename,"",lcWorkDir,3)
or you might try:
RETURN ShellExecute(GetActiveWindow(),lcOperation,lcFilename,"",lcWorkDir,5)