Conversion expression

A conversion expression is any function that evaluates to a valid processing code (conversion).

Syntax

iconv(str.exp, conv.exp)
oconv(str.exp, conv.exp)

Example(s)

The statement below prints the system time using the mth AQL processing code as a literal string.

print oconv(time(),'mth')

The conversion expression is the AQL d (date) processing code stored as a string in the variable, conv.exp.

conv.exp = 'd2-'
d = oconv(date(),conv.exp)

preci= '2'
scale = '4'
money = oconv(income,'mr':preci:scale)

The conversion expression is the compound string expression:

'mr':preci:scale

that results in the string, "mr24".