At 09:07 AM 2/25/00 -0500, Daniel Coppersmith wrote:

I searched the registry to find which program is associated with a .HTML
extension (e.g. Netscape or Internet Explorer), then use a simply
RUN(ls_program + " " + ls_htmlPage).  If I cannot resolve the program, I
tell the user, otherwise I let Windows do the work for me.

Another way is to "run" the URL directly:

Function uint ShellExecuteA (long winHandle, string lpoperation, string lpFile, string lpparms, string lpDirectory, uint ucmdshow) library "shell32.dll"

Long ll_rc
String ls_null

SetPointer( Hourglass! )
SetNull( ls_null )

ll_rc = ShellExecuteA ( 0, "open", "http://www.sybase.com/i" + Char(0), ls_null, ls_null, 1 )


Or use the Inet object:

Inet lnet_1
GetContextService( "Internet", lnet_1 )
lnet_1.HyperlinkToUrl( "http://www.sybase.com/i" )


  Boris Gasin
  mailto:[EMAIL PROTECTED]
    ___ 
  ____   _      
 _____    _     
  ____   _      
    ___ 

  Chief Technology Officer
  Dynamic Technology Group, Inc.
  http://www.dynamictechgroup.com/
  1055 Parsippany Blvd., Suite 501-26
  Parsippany, NJ 07054
  Phone: 973.402.5600
  Fax:   973.402.5620

Reply via email to