Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(HyperLink)

Mnemonic: (HyperLink = LinkText$, LinkAction$, Style)

where:

  • LinkText$ is the text that is displayed on the screen
  • LinkAction$ is a string value (254 bytes maximum) that is passed to the event handling subroutine when the user clicks on a hyperlink. Note: This is an internal value only; the end-user does not see this string. See the EVENTSUB statement for more information.
  • Style is a numeric value that determines if the link text is underlined (0 = not underlined, 1 = underlined).
Discussion: The HyperLink mnemonic displays a hyperlink on the screen.

For a complete discussion, see Comet Hyperlinks.

Example:
Print @(0,3);"What is your favorite flavor?"
Print @(0,4);(Hyperlink="Chocolate","LINK1",0)
Print @(0,5);(Hyperlink="Vanilla","LINK2",0)
Print @(0,6);(Hyperlink="Strawberry","LINK3",0)
Print @(0,7);(Hyperlink="Chocolate chip","LINK4",0)
This program displays several hyperlinks on the Comet/CometAnywhere screen. If the user clicks on the any of these links, the associated LinkAction$ value is passed to the event handling subroutine. For example, if the user clicks on the "Chocolate chip" hyperlink, "LINK4" is passed to the event handling subroutine.

Notice that all of the above hyperlinks are displayed without an underline (Style = 0).

Note: The above code segment comes from the HyprLink.ibs demo program (available in the DMW release).