# pcase, pcaseFix, proper

### pcase(source)

Convert a string to Proper Case, with no fixing of incorrect conversions.

### pcaseFix(source)

Convert a string to Proper Case, then use the pcase table to fix any mistakes (e.g. replace Ibm with IBM).

### proper(source)

Convert a string to Proper Case, with no fixing of incorrect conversions. Same as pcase.

## Arguments

Argument | Data Type | Description
source | string | String to search

## Returns

The source string converted to all Proper Case. Proper Case capitalises the first letter of each word, and lowercases all the other letters.

## Description

Both functions convert the source string to all Proper Case. Proper Case capitalises the first letter of each word, and lowercases all the other letters.

A problem with doing this blindly is that many words should be all capitalised; for example, IBM. The standard pcase() function will turn this into Ibm. There may also be words with unusual capitalisations; for example, InaPlex.

In Tools - Options - Text Maps there is a text map called "Proper Case Fixup". This table contains words and phrases that have unique capitalisations.

proper() exactly mirrors pcase() and is simply included for those who are used to dBase functions.

## Examples

Assume that:

1. field 1 has the string "IBM is a big company"

2. field 2 has "InaPlex is a good company"

3. the Proper case fixup table has:
   Ibm -> IBM
   Inaplex -> InaPlex

Example | Returns | Description
pcase(#1) | "Ibm Is a Big Company" | Notice that the 'a' is not capitalised
pcaseFix(#1) | "IBM Is a Big Company" |
pcase(#2) | "Inaplex Is a Good Company" |
pcaseFix(#2) | "InaPlex Is a Good Company" |

## See Also

lcase(), ucase()