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 Group (G)<br />

Syntax<br />

OCONV(str.expr, "G[m]x n")<br />

Description<br />

The OCONV group (G) function extracts one or more strings separated by a<br />

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

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

Paramete<br />

r Description<br />

str.exp Indicates a string separated by a delimiter.<br />

m Indicates the number of strings to skip. If m is omitted, no strings are skipped.<br />

x Specifies any single nonnumeric character to be the delimiter. UniData system<br />

delimiters are valid. Hyphen or minus sign is not valid.<br />

n The number of strings to be extracted.<br />

OCONV Group (G) Parameters<br />

Example<br />

In the following example, the program segment prints (303):<br />

X = "(303)+555+0988"<br />

PRINT OCONV(X,"G0+1")<br />

OCONV Group (G) 1-494

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

Saved successfully!

Ooh no, something went wrong!