11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OCONV Masked Character (MC)<br />

Syntax<br />

OCONV(str.expr, "MC [A | /A | B | /B | C;x;y | U | L | T | N | /N | P | X[D] | D | D[X]<br />

| X]")<br />

Description<br />

The OCONV mask character (MC) function converts alphabetic characters to<br />

uppercase or lowercase, or extracts alphabetic or numeric characters from strings.<br />

This function performs the same conversions and extractions as ICONV MC. If the<br />

input value or conversion code is invalid, UniData returns the input value.<br />

Note: In BASICTYPE P, OCONV returns an empty string if UDT.OPTIONS 56 is on<br />

and the input value or conversion code is invalid.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

str.expr The expression to be searched or converted.<br />

A Extracts all alphabetic characters.<br />

/A Extracts all nonalphabetic characters.<br />

B Extracts all alphabetic and numeric characters.<br />

/B Extracts all special characters (not alphabetic nor numeric).<br />

C;x;y Converts all occurrences of substring x to substring y.<br />

U Converts data to uppercase.<br />

L Converts characters to lowercase.<br />

OCONV Masked Character (MC) Parameters<br />

OCONV Masked Character (MC) 1-498

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!