Nov 6, 2002 #1 elias2212 Technical User Joined Jul 16, 2002 Messages 10 Location US I have a list box in a form that contains an internet url - like http://www.somecompany.com.How do I activate a browser and link to that website on the internet and I would like to return to my form when the browser is closed? Thanks
I have a list box in a form that contains an internet url - like http://www.somecompany.com.How do I activate a browser and link to that website on the internet and I would like to return to my form when the browser is closed? Thanks
Nov 6, 2002 #2 Mike Gagnon Programmer Joined Apr 6, 2002 Messages 8,067 Location CA In the dblClick of the listbox put : Code: LOCAL lnRetval, lcFile, lcOperation lcFile = this.Value operations are available, for example Print lcOperation = "Open" DECLARE INTEGER ShellExecute IN SHELL32.DLL ; INTEGER handle,; STRING @sFile,; STRING @lp,; STRING @dir,; STRING @dir1,; INTEGER ncmd lnRetval = ShellExecute(0, lcOperation, lcFile, "", "", 1) Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first Upvote 0 Downvote
In the dblClick of the listbox put : Code: LOCAL lnRetval, lcFile, lcOperation lcFile = this.Value operations are available, for example Print lcOperation = "Open" DECLARE INTEGER ShellExecute IN SHELL32.DLL ; INTEGER handle,; STRING @sFile,; STRING @lp,; STRING @dir,; STRING @dir1,; INTEGER ncmd lnRetval = ShellExecute(0, lcOperation, lcFile, "", "", 1) Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first