Approach User Support homepage Approach User Support
Answers to Frequently Asked Questions about Lotus Approach
Examples LotusScripts
Example databases
Links to other Lotus Approach support services

[Return to contents]

How to lauch your default browser to view a URL contained in a text field

Last updated: 18 Jun 2003

Create a button to activate a script or macro along the following lines:

Macro: use the Open command and substitute the field contents in the parameter by enclosing tablename.fieldname in double angle brackets. Eg:
Open 'http://'<<Customers.URL>>

This apparently doesn't work in properly in v97.
Script: use shell rundll32.exe to invoke the http protocol handler. Say the object name of the fieldbox containing the url is fbxURL

Dim intRtn As Integer
intRtn = Shell("rundll32.exe url.dll,FileProtocolHandler http://" & CurrentView.Body.fbxURL.Text)

See article 'Example LotusScript: A button activated script that launches URL contained in a text field' for more details.

[Return to contents]

© Copyright, JohnBrown, Trademarks, Disclaimer, Acknowledgements.