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<br />

Syntax<br />

OCONV(expr, conv.code.expr)<br />

Description<br />

The <strong>UniBasic</strong> OCONV function converts string or numeric data from internal format<br />

to display format based on conversion codes. If the input value or conversion code is<br />

invalid, UniData returns the input value. OCONV supports multibyte languages.<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 />

The following table summarizes the valid conversion codes. A detailed discussion of<br />

each follows under separate headings.<br />

1-487 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

expr Specifies the expression, a string or numeric data, to convert.<br />

conv.code.expr Specifies an internal representation format to use when converting expr.<br />

OCONV Parameters<br />

Code Format<br />

D System date.<br />

G Extracts one or more strings separated by a delimiter.<br />

L Length.<br />

MB Binary.<br />

OCONV Codes

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

Saved successfully!

Ooh no, something went wrong!