|
|
Create a formatted person name, given some set of parts (title, first name, etc.),
Formatted person name.
<cfx_kmFormat F=FullName V=variable SHOW
FORMAT="FML" or "LFM"
TITLE=title
FIRST=fname
MIDDLE=mname
LAST=lname
SUFFIX=suffix
PROPER="Yes" or "No" >
| Attribute | Description | Required? |
| FORMAT |
Desired output format for the name FML=First-middle-last LFM=Last-first-middle |
no |
| TITLE | Desired title for the person's name, e.g. "Mr.", "Ms", "Sir", etc. | no |
| FIRST | Person's first name. | no |
| MIDDLE | Person's middle name or initial. If the name is one character long, it is assumed to be an initial and will have a period appended. | no |
| LAST | Person's last name. | no |
| SUFFIX | Desired suffix for the person's name, e.g. "Jr.", "Sr.", "Esquire", etc. | no |
| PROPER | Apply automatic "proper name" formatting. Refer to the ProperName function. | no |
| Examples | |
|
<cfx_kmFormat F=FullName TITLE="sir" FIRST="fred"
MIDDLE="r" LAST="qwerty" SUFFIX="jr" PROPER=Yes> |
|
| Result: |
Sir Fred R. Qwerty Jr |
Formatted telephone number.
<cfx_kmFormat F=FullPhone V=variable SHOW
AREA=number
NUMBER=number
EXT=number >
| Attribute | Description | Required? |
| AREA | Area code. | no |
| NUMBER | Phone number. | no |
| EXT | Phone extension. | no |
| Examples | |
|
<cfx_kmFormat F=FullPhone AREA="612" NUMBER="5551212" EXT="711">
|
|
| Result: |
(612) 555-1212 Ext: 711 |
Yes=Card number is (potentially) valid.
No=Card number cannot be valid.
Free bonus information: If the credit card number is valid, the variable request.kmCCType is set to the credit card type, which may be: AMEX, VISA, MASTERCARD or DISCOVER.
<cfx_kmFormat F=IsValidCC16 V=variable SHOW
CC=number>
| Attribute | Description | Required? |
| CC | 16 digit credit card number. | YES |
| Examples | |
|
<cfx_kmFormat F=IsValidCC16 CC="4466 1133 2244 7755">
|
|
| Result: |
NO |
Yes=ISBN number is (potentially) valid.
No=ISBN number cannot be valid.
<cfx_kmFormat F=IsValidISBN V=variable SHOW
ISBN=number>
| Attribute | Description | Required? |
| ISBN | ISBN book number. | YES |
| Examples | |
|
<cfx_kmFormat F=IsValidISBN ISBN="0-7897-1810-3">
|
|
| Result: |
YES |
Capitalized address text.
<cfx_kmFormat F=ProperAddress V=variable SHOW
ADDRESS=text>
| Attribute | Description | Required? |
| ADDRESS | Address to be capitalized. | YES |
| Examples | |
|
<cfx_kmFormat F=ProperAddress
ADDRESS="124 van nuys blvd sw"> |
|
| Result: |
124 Van Nuys Blvd SW |
Capitalized text
<cfx_kmFormat F=ProperCase V=variable SHOW
VALUE=text >
| Attribute | Description | Required? |
| VALUE | Text to be capitalized. | YES |
| Examples | |
|
<cfx_kmFormat F=ProperCase TEXT="mary had a little lamb.">
|
|
| Result: |
Mary Had A Little Lamb. |
Capitalized name text.
<cfx_kmFormat F=ProperName V=variable SHOW
NAME=text >
| Attribute | Description | Required? |
| NAME | Name to be capitalized. | YES |
| Examples | |
|
<cfx_kmFormat F=ProperName NAME="bob a mcconnell">
|
|
| Result: |
Bob A McConnell |
Dollars and cents as English words.
<cfx_kmFormat F=SpellDollars V=variable SHOW
VALUE=number >
| Attribute | Description | Required? |
| VALUE | Any number representing dollars and cents. | YES |
| Examples | |
|
<cfx_kmFormat F=SpellDollars VALUE=21945.67>
|
|
| Result: |
Twenty One Thousand Nine Hundred Forty Five Dollars and 67 Cents |
Decimal number as English words.
<cfx_kmFormat F=SpellNumber V=variable SHOW
VALUE=number >
| Attribute | Description | Required? |
| VALUE | Any number. | YES |
| Examples | |
|
<cfx_kmFormat F=SpellNumber VALUE=21945.67>
|
|
| Result: |
Twenty One Thousand Nine Hundred Forty Five pt Sixty Seven |