Equinox Online Help - Language Reference - A to Z

Home

StrCase

Applies to
SyntaxStrcase StringItem [, CaseExpression]
Action[Statement] Changes the case of the characters in a string.
ScopeUsable anywhere.
Notes

This function converts the case of StringItem, depending on the value of CaseExpression. CaseExpression can take the following values:

  • 0 StringItem is converted to uppercase
  • 1 StringItem is converted to lowercase
  • 2 The first letter of each word in StringItem is converted to uppercase and all other letters are converted to lowercase
  • 3 StringItem is converted to a non-printing string, identical to that generated by the Sortorder function

If you omit CaseExpression, it defaults to zero.

CategoryConversions
See Also Asc, Card, ChoosePrinter, HexNum, HexStr, Lowercase, Ord, Str, StrDate, StrTime, Uppercase
Example

In the following examples, the notes show what sort of result is obtained for each statement.

string vsVariable

vsVariable = "EE Cummings"

Strcase Surname, 2 | Giggs
Strcase CarRegno | NPE 716D
Strcase "EE Cummings", 1 | ee cummings