PickBASIC / FlashBASIC
Conversion expression
.mdA conversion expression is any function that evaluates to any of the valid processing codes listed below in the See also section.
Syntax
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".
See also
d (date) processing code→Expression→iconv() function→mt (mask time) processing code→oconv() function→Statements and functions→t (text extraction) processing code→g (group extract) processing code→l (length) processing code→m (mask) processing code→mc (mask character) processing code→mp (mask packed decimal) processing code→ms (mask alter sort) processing code→mx (mask ASCII to hexadecimal) processing code→my (mask hexadecimal to ASCII) processing code→p (pattern match) processing code→r (range) processing code→BASIC user exits→