See also: fsInteger

Function used to determines whether or not the value in the field is an integer. If the field does not contain an integer, then an alert is displayed, focus is returned to the field, and any information in the field is selected.

Syntax

JSV_fvInteger(expO [, emptyOK])

Prototype

n/a

Returns

The fvInteger does not return a value.

Parameters

The fvInteger function uses the following arguments.

Argument Description
expO The object.
emptyOK Optional. Boolean value that indicates whether the field is mandatory (i.e., not empty). Default value is false.

Remarks

n/a

Dependencies

JSV_fsInteger

Example

The following lines of code

<FORM NAME="IntegerForm">
<B>Integer Number:</B>
<INPUT TYPE="Text" NAME="MyInteger" 
       SIZE="8" MAXLENGTH="8"
       onBlur="JSV_fvInteger(this,true);">
<INPUT TYPE="Button" NAME="IntegerCheck" VALUE="Check">
</FORM>

produce

Enter an integer number and click the Check button.

Integer Number: