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

ICONV File Translation (Tfile) Syntax ICONV(rec.id, "T[DICT] [filename;cn;I-Attribute;O-Attribute]") Description The ICONV file translation (Tfile) function performs the same action as OCONV file translation (Tfile). For information, see OCONV File Translation (Tfile). 1-365 UniBasic Commands Reference

ICONVS Syntax ICONVS(dyn.array.expr, conv.code.expr) Description The UniBasic ICONVS function converts string or numeric data from display format to internal format, based on a conversion code, for each element of a dynamic array. 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. Null Value Handling With null value handling turned on, the presence of the null value in data produces a result of the null value, and the STATUS function return value is set to 5. Note: ICONVS conversion codes are the same as ICONV conversion codes. For information about conversion codes, refer to ICONV. Parameters The following table describes each parameter of the syntax. Parameter Description dyn.array.expr Specifies a dynamic array, each element of which to convert. conv.code.expr Specifies a code to use in converting each element of the dynamic array. ICONVS Parameters ICONVS 1-366

ICONVS<br />

Syntax<br />

ICONVS(dyn.array.expr, conv.code.expr)<br />

Description<br />

The <strong>UniBasic</strong> ICONVS function converts string or numeric data from display format<br />

to internal format, based on a conversion code, for each element of a dynamic array.<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 />

Null Value Handling<br />

With null value handling turned on, the presence of the null value in data produces a<br />

result of the null value, and the STATUS function return value is set to 5.<br />

Note: ICONVS conversion codes are the same as ICONV conversion codes. For<br />

information about conversion codes, refer to ICONV.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

dyn.array.expr Specifies a dynamic array, each element of which to convert.<br />

conv.code.expr Specifies a code to use in converting each element of the dynamic array.<br />

ICONVS Parameters<br />

ICONVS 1-366

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

Saved successfully!

Ooh no, something went wrong!