hyperlinks

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

hyperlinks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:43 pm

by cnwrbb1 >> Mon, 12 May 2003 19:54:58 GMT

Can anyone shed light on how to do this? When a user clicks on a hyperlink (e.g. label) on a thin client form, start a new web browser, or maximise an existing browser, to display the web page.

Cheers -- rb

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: hyperlinks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:43 pm

by allistar >> Mon, 12 May 2003 20:29:46 GMT

Like this:

vars
command, site: String;begin

command := "open";
site := "http://www.silvermoon.co.nz";
call shellExecute (0, command.bufferAddress, site.bufferAddress, 0, 0, 1); end;

where shellExecute is an external function defined as this:

shellExecute (hwnd, lpOperation, lpFile, lpParameters, lpDirectory,
nShowCmd : Integer) is ShellExecuteA in shell32;;

This will open up your default browser (e.g. Mozilla) with the URL you pass it.

Regards,
Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz ------------------------------------------------------------------


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 27 guests