Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Advanced PowerBuilder

HomePrevious Lesson: Writing to the Windows NT Event Log
Next Lesson: Finding the System Directory

Displaying a URL in the Default Browser

Declare 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)
HomePrevious Lesson: Writing to the Windows NT Event Log
Next Lesson: Finding the System Directory

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com