UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Related Commands UniBasic DATE, ICONV Date (D), TIMEDATE UniData DATE, DATE.FORMAT, SET.TIME – For information, see the UniData Commands Reference. 1-493 UniBasic Commands Reference

OCONV Group (G) Syntax OCONV(str.expr, "G[m]x n") Description The OCONV group (G) function extracts one or more strings separated by a delimiter. If the input value or conversion code is invalid, UniData returns the input value. Note: In BASICTYPE P, OCONV returns an empty string if UDT.OPTIONS 56 is on and the input value or conversion code is invalid. Parameters The following table describes each parameter of the syntax. Paramete r Description str.exp Indicates a string separated by a delimiter. m Indicates the number of strings to skip. If m is omitted, no strings are skipped. x Specifies any single nonnumeric character to be the delimiter. UniData system delimiters are valid. Hyphen or minus sign is not valid. n The number of strings to be extracted. OCONV Group (G) Parameters Example In the following example, the program segment prints (303): X = "(303)+555+0988" PRINT OCONV(X,"G0+1") OCONV Group (G) 1-494

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DATE, ICONV Date (D), TIMEDATE<br />

UniData<br />

DATE, DATE.FORMAT, SET.TIME – For information, see the UniData <strong>Commands</strong><br />

<strong>Reference</strong>.<br />

1-493 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!