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

The following table describes various dates you can input in the previous program and their conversions. Related Commands UniBasic DATE, OCONV Date (D), TIMEDATE 1-339 UniBasic Commands Reference In_Date Internal Output 1 8402 01/01/1991 11 8706 11/01/1991 011 8402 01/01/1991 12 8736 12/01/1991 121 8736 12/01/1991 110389 8709 11/03/1989 1/1 8402 01/01/1991 1/1/89 8402 01/01/1989 1/1/02 12420 01/01/2002 Example Date Conversions

ICONV Group (G) Syntax ICONV(str.expr, "G[m]*n") Description The ICONV 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, ICONV 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. Parameter Description str.expr Indicates a string separated by a delimiter. G Group extraction code. m Indicates the number of strings to skip. If m is omitted, no strings are skipped. * Specifies any single nonnumeric character that is the delimiter. A minus sign (-) is not valid. UniData system delimiters are valid also. n The number of strings to be extracted. ICONV Group (G) Parameters Example In the following example, the program segment prints (303): X = "(303)+555+0988" PRINT ICONV(X,"G0+1") ICONV Group (G) 1-340

The following table describes various dates you can input in the previous program<br />

and their conversions.<br />

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

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

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

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

In_Date Internal Output<br />

1 8402 01/01/1991<br />

11 8706 11/01/1991<br />

011 8402 01/01/1991<br />

12 8736 12/01/1991<br />

121 8736 12/01/1991<br />

110389 8709 11/03/1989<br />

1/1 8402 01/01/1991<br />

1/1/89 8402 01/01/1989<br />

1/1/02 12420 01/01/2002<br />

Example Date Conversions

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

Saved successfully!

Ooh no, something went wrong!