Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading a URL
Message
 
To
07/04/2008 12:37:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01308741
Message ID:
01308771
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Sergey, Borislav and Naomi,
>
>Here is my test code with an example long URL;
>
>
>lcURL = "http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://www.freep.com/apps/pbcs.dll/article%3FAID%3D/20080406/NEWS01/80406034/1003/news&cid=1148779392&ei=3Ez6R4TdNqiSwwHsmvCmDg&usg=AFrqEzeDJ_6u2AjFqilgY9BzF0luu4qVyw"
>
>  DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
>    INTEGER nWinHandle , ;
>    STRING cOperation  , ;
>    STRING cFileName   , ;
>    STRING cParameters , ;
>    STRING cDirectory  , ;
>    INTEGER nShowWindow
>
>? SHELLEXECUTE( 0, "Open", m.lcURL , "", "", 0 )
>
>
>Error code is 42.
>
>
>
>
>>I'm pretty sure that there's a limit but I doubt that it's that small. What error do you get? Can you give an example of URL that doesn't work?
>>
>>>
>>>I am using shellexecute() to load a URL with the users default browser. However, the parameter which contains the URL will not accept a string longer than 125 chars. What is a better way to load a URL with the users default browser?


But you didn't get an error. Here MSDN description of ShellExecute:

Returns a value greater than 32 if successful
http://msdn2.microsoft.com/en-us/library/bb762153.aspx
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform