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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink within a Combobox

Status
Not open for further replies.

CMcC

Programmer
Feb 5, 2002
196
US
Is this possible? I need to know where to find this info for the click event of the combobox:

Code:
DO case
case ALLTRIM(this.Value) = "TL-10"
  **  go to a website 
  
case ALLTRIM(this.Value) = "TL-11"  
 **  go to a website 
endcase

Any suggestions? Ive tried to google this but no luck. thanks

CMCC
 
Not sure exactly what you're asking. But assuming you want to know how to bring up a website, ShellExecute() would be a good way to go:

Code:
* Somewhere in your startup program:

DECLARE INTEGER ShellExecute IN shell32.dll ;
  INTEGER hndWin, ;
  STRING cAction, ;
  STRING cFileName, ;
  STRING cParams, ;
  STRING cDir, ;
 INTEGER nShowWin

* ........
* At the point where you want to go to a site:

ShellExecute(0, "open", "[URL unfurl="true"]www.SomeURL.com",[/URL] "", "", 0)

Does that help at all? If not, please clarify your question.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Mike - that is exactly what I was asking! Thanks!
CMCC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top