LINK
Jump to navigation
Jump to search
![]() |
![]() |
![]() |
![]() |
Description
- A Link in Run BASIC is similar to a button in Liberty BASIC.
Syntax
- LINK #handle, labelExpr$, handler - Add a link to the web page with #handle, labelExpr$, and handler
Hints
- The labelExpr$ is the text the user sees. When the user clicks on the link, the event handler specified is activated. It can be either a sub or a branch label. If the handler is a sub, the handle of the link is passed into the sub. If the handler is a branch label, the global variable EventKey$ is set to be the handle of the link.
- The following methods are supported
Example
'create a link with sub event handler link #doStuff, " Do Stuff ", doStuff print:print 'create a link with branch label event handler link #doMore, " Do More ", [doMore] wait sub doStuff handle$ print:print "Handle is ";handle$ end sub [doMore] print:print "Handle is ";EventKey$ wait
Useful Procedures
' Place a useful function or sub using this keyword here