Description

Converts a string into a specified output format.

Syntax

output = OConv (expression, "MC [U] [L] [T] [N] [A] [AN] [/A]")

Parameters

OConv (D) accepts arguments for the following parameters.

ParameterDescription
expressionA string.
MCIndicates a masked character conversion.

Note: The MC conversion is a masked comma conversion. The MCx conversion described here must contain the third character in order to process strings.

U, L, T, N, A, AN, /AThe U option will return the string in upper case.

The L option will return the string in lower case.

The T option will return the string in title case.

The N option will return the numeric characters within the string.

The A option will return the alphabetic characters within the string.

The AN option will return the alphabetic and numeric characters within the string.

The /A option will return all non-alphabetic characters within the string.

Example

The following table provides examples of the correct use of the OConv MCx function:
string = 'Frank Sinatra conducts tone poems of color 1956'
Example
Output
OConv(string, "MCU")
FRANK SINATRA CONDUCTS TONE POEMS OF COLOR 1956
OConv(string, "MCL")
frank sinatra conducts tone poems of color 1956
OConv(string, "MCT")
Frank Sinatra Conducts Tone Poems Of Color 1956
OConv(string, "MCN")
1956
OConv(string, "MCA")
FrankSinatraconductstonepoemsofcolor
OConv(string, "MC/A")
       1956
OConv(string, "MCAN")
FrankSinatraconductstonepoemsofcolor1956
  • No labels