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.

ICONV Group (G)<br />

Syntax<br />

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

Description<br />

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

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

Note: In BASICTYPE P, ICONV 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 Indicates a string separated by a delimiter.<br />

G Group extraction code.<br />

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

skipped.<br />

* Specifies any single nonnumeric character that is the delimiter. A minus sign<br />

(-) is not valid. UniData system delimiters are valid also.<br />

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

ICONV Group (G) Parameters<br />

Example<br />

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

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

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

ICONV Group (G) 1-340

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

Saved successfully!

Ooh no, something went wrong!