|
Advanced PowerBuilder Displaying a URL in the Default BrowserDeclare a local external function as shown below.
Function long ufx_ShellExecute(ulong hwnd, &
string lpOperation, string lpFile, &
string lpParameters, string lpDirectory, &
long nShowCmd) library "shell32.dll" &
ALIAS FOR "ShellExecuteA" |
The following code opens the specified URL in the default browser.
// Object: cb_show_url
// Event: Clicked
String ls_null
SetNull (ls_null)
ufx_ShellExecute(Handle(Parent), ls_null, &
"http://www.sybase.com", ls_null, ls_null, 1) |
|