From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC


A Link in Run BASIC is similar to a button in Liberty BASIC.


  1. LINK #handle, labelExpr$, handler - Add a link to the web page with #handle, labelExpr$, and handler


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


'create a link with sub event handler
link #doStuff, " Do Stuff ", doStuff

'create a link with branch label event handler
link #doMore, " Do More ", [doMore]


sub doStuff handle$
print:print "Handle is ";handle$
end sub

print:print "Handle is ";EventKey$

Useful Procedures

' Place a useful function or sub using this keyword here