Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button that goes to link

Status
Not open for further replies.

emoneybags

Programmer
Feb 3, 2009
1
US
I am new to powerbuilder and need to know the script that will take me to a link inside of a button?

Thanks a lot.
 
In the Clicked event of the Button you can get an instance of an inet object (Internet ContextService object) and call the HyperlinkToURL function to open a web link in the default Browser.

Example:

// Clicked event
inet linet_base

GetContextService("Internet", linet_base)
linet_base.HyperlinkToURL("<URL>")
 
There are also HyperLink object, such as PictureHyperLinks you can use as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top