| See also: fsInitialCap | |
Converts a fields alphabetic characters to a proper-name.
JSV_fvInitialCap(expO [, PROPERNAMES, RESETCASE])
n/a
n/a
The fvInitialCap function uses the following arguments.
| Argument | Description |
| expO | The object. |
| PROPERNAMES | Optional. Handles the capitalization of two surname types (i.e., last names): those names that contain a single quote (e.g., O'Malley) and those names that start with 'Mc' (e.g., McCoy). |
| RESETCASE | Optional. Converts the entire string to lowercase before capitalizing each word. Useful for those instances where the string may be passed in ALL CAPITAL LETTERS. See Argument Placement below. |
The arguments RESETCASE and PROPERNAMES can appear in any order with the string that is to have its first character capitalized.
For example,
fvInitialCap(expS, RESETCASE, PROPERNAMES),
fvInitialCap(RESETCASE, PROPERNAMES, expS),
fvInitialCap(RESETCASE, expS, PROPERNAMES)
and
fvInitialCap(expS, RESETCASE)
are valid calls to the fvInitialCap function.
The following lines of code
<FORM NAME="InitCapForm">
<B>Name:</B>
<INPUT TYPE="Text" NAME="MyValue" VALUE="mccoy" SIZE="16" MAXLENGTH="16" onBlur="JSV_fvInitialCap(this, PROPERNAMES);">
<INPUT TYPE="Reset">
</FORM>
produce
Tab out of the Value field.
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.