guides:o4w:o4w_api:o4wnumberbox

O4WNumberBox routine

O4WNumberBox is an enhanced (HTML5) text box used for numeric input. HTML5 enabled browsers (including many mobile browsers), restrict input to valid entries (and may additionally provide other UI support for numeric input). In non-HTML5 browsers, O4WNumberBox will display and act as a normal textbox.

O4WNumberBox(origValue, size, maxlen, minValue, maxValue, stepValue, blsRange, name, ID, StyleInfo)

The function has the following parameters:

ParameterDescription
origValueWhen specified, defines the initial numeric value.
sizeInteger. When specified, defines the size (in characters) of the textbox.
maxlenInteger. When specified, defines the maximum number of characters the textbox will accept.
minValueInteger. When specified, defines the minimum allowed value.
maxValueInteger. When specified, defines the maximum allowed value.
stepValueInteger. When specified, defines the incrementing step.
bIsRangeBoolean. When TRUE, the O4WNumberBox displays as a range input control.
nameThe name of the number box. This is the input name tag.
idThe name of the number for style and stylesheet use..
styleInfoWhen specified, the style is applied to the text box that is generated. Note that style can be either the name of a style (as created by one of the O4W style functions, or as defined in an included style sheet), or it can be the returned value from one of the O4W style functions.

O4WTextBox routine

O4WNumberBox(“10”, “”, “”, “0”, “100”, “2”, “1”, “NUMVALUE”, “NUMVALUE”)
 
 
 
 
  • guides/o4w/o4w_api/o4wnumberbox.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1