O4WNumberBox routine
Description
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.
Syntax
O4WNumberBox(origValue, size, maxlen, minValue, maxValue, stepValue, blsRange, name, ID, StyleInfo)
Parameters
The function has the following parameters:
Parameter | Description |
---|---|
origValue | When specified, defines the initial numeric value. |
size | Integer. When specified, defines the size (in characters) of the textbox. |
maxlen | Integer. When specified, defines the maximum number of characters the textbox will accept. |
minValue | Integer. When specified, defines the minimum allowed value. |
maxValue | Integer. When specified, defines the maximum allowed value. |
stepValue | Integer. When specified, defines the incrementing step. |
bIsRange | Boolean. When TRUE, the O4WNumberBox displays as a range input control. |
name | The name of the number box. This is the input name tag. |
id | The name of the number for style and stylesheet use.. |
styleInfo | When 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. |
Remarks
See Also
O4WTextBox routine
Example
O4WNumberBox(“10”, “”, “”, “0”, “100”, “2”, “1”, “NUMVALUE”, “NUMVALUE”)