Copyright 2008 Shoptalk Systems

CHECKBOX #handle, labelExpr$, setting

The CHECKBOX statement adds a checkbox object to the web page at the current position.  The checkbox object is assigned to the variable named #handle.  The labelExpr$ is used to give the link a text label.  Turn the checkbox initially on or off with the setting value, either nonzero or zero.

When the link  is clicked, the name of the handle variable is assigned to the global variable EventKey$.  If the handler is a named sub, then the name of the handler is passed into the sub as a string parameter.

Example:

  groupChoice$ = "One"

[drawPage]
  cls
  radiogroup #rgroup, "One,Two,Three", groupChoice$
  print
  link #exec, "Execute!", [processAction]
  print
  print aTranslated$
  wait

[processAction]
  cls
  groupChoice$ = #rgroup selection$()
  print groupChoice$
  link #cont, "Continue", [drawPage]
  wait