Copyright 2008 Shoptalk Systems

TEXTBOX #handle, expr$[, columns]

The TEXTBOX statement adds a text field object to the web page at the current position.  The object is assigned to the variable named #handle.  The expr$ is used to set the contents of the text field.  The optional columns value specifies the width of the textbox widget.

Example:

  text$ = "Hello world!"
  textbox #box, text$
  print
  link #action, "Accept", [accept]
  wait

[accept]
  text$ = #box contents$()
  print text$
  wait

TEXTBOX object methods

#handle CONTENTS$() - Return the contents of the textbox as a string
#handle VALUE() - Return the contents of the textbox as a number
#handle TEXT(expr$) - Set the contents of the textbox
#handle PRINT(expr$) - Append expr$ to the contents of the textbox
#handle SETFOCUS() - Set the input focus to this control when the page is displayed
#handle SETID(expr$) - Set the HTML id property to be the value of expr$
#handle ISNULL() - Returns zero (or false)
#handle DEBUG$() - Returns the string "Textbox"