Performs input conversions exactly like those used in English.
ICONV(value, conversion)
value A DataBasic expression that evaluates to the value to be converted.
Note: The value to be converted cannot contain any system delimiters.
conversion A string containing one of the following English conversion codes:
D Converts a date to internal format (see D Code). Note that only the S special processing operator is valid – all others are ignored.
Date conversion to internal format can also be accomplished using a DI output conversion (see OCONV statement).
MC Performs character conversion (see MC Codes).
MD Converts decimal number to integer (see MD Code).
MF Removes commas, decimal points and blanks from expression. Now obsolescent, replaced by ML and MR.
ML Mask decimal, left align (see ML and MR Codes).
MP Converts integer to packed decimal (see MP Code).
MR Mask decimal, right align (see ML and MR Codes).
MT Converts time to internal format (see MT Code).
MX Converts hexadecimal codes to ASCII characters.
T Extracts a character substring from an attribute value (see T Code). Note, however, that Substring Extraction is more efficient.
Tfile Converts by table/file translation (see Tfile Code). Inefficient if you need to access several items or attributes.
PENNIES = ICONV("1234.00","MD2")
Assigns the string value 123400 to the variable PENNIES.
IDATE = ICONV("7-29-85","D")
Assigns the internal date value 6420 to variable IDATE.