||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
exit to HyperCard
exit keyword interrupts the current flow of control.
Exit repeat sends control to the end of a
repeat structure, ending execution of the loop regardless of the state of the controlling conditions.
exit functionName and
exit messageName forms stop the current message or function handler. Control returns to any pending statements from another handler, if any.
Exit to HyperCard terminates all running or pending handlers and cancels all pending messages.
exit to leave a function handler sets the value of the function to empty.
answer "Would you like to see a demo?" with "No" or "Yes"
if it is "No" then exit exitDemo
put "Click the mouse to exit this handler…"
put 1 into lineNum
put the number of lines in me into totalLines
set the autoSelect of me to true -- to get a nice solid hilite
if lineNum > totalLines then put 1 into lineNum
select line lineNum of me
if the mouseClick then exit repeat
add 1 to lineNum
select line 0 of me
set the autoSelect of me to false
Any text string, without quotation marks, that represents the name of the function handler you want to write:
As in the HyperTalk examples:
function myAverage theNumbers
Any text string, without quotation marks, that represents the name of the message handler you want to write:
on selectWholeLine theLine, aContainer
« do | HyperTalk Reference
| function »