[Top] [Prev] [Next] [Bottom] [Contents]

SaJavaState

Prints two Java Script functions which check for a valid state abbreviation. One function checks a string to see if it matches the 50 states and DC (case insensitive). The other checks the value of a text field, as in the first function, and converts the text field's value to upper case.

Synopsis

#include "sajavasc.h"
int SaJavaState();

Argument

None

Return Values

Returns an integer with a value of 0.

Description

Prints two Java Script functions which check for a valid state abbreviation. One function checks a string to see if it matches the 50 states and DC (case insensitive). The other checks the value of a text field, as in the first function, and converts the text field's value to upper case.

Example

The code fragment:

SaJavaState();
will write a string to standard out which is equivalent to the contents of the file:

config\htmlstyle\YValState.js
in the Sapphire distribution.

See Also

SaJavaSsnCheck, SaJavaZipCheck, SaJavaCardCheck, SaJavaNoEmptyFields, SaJavaDateFixNow, SaJavaIsAllDigits, SaJavaIsAllLetters, SaJavaIsFieldNotBlank, SaJavaValEmail, SaJavaSimpleFormat, SaRegJsScripts, SaPrintJsScripts, SaJavaCallFunc



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.