basic.iconv
Input conversion function.
Syntax
iconv(string.expression, conv.expression)
Description
converts a value from its external format to its internal equivalent, according to the processing code being applied.
Example
check.amount = 12.5
print iconv(check.amount,'mr2')
1250
This example converts 'check.amount' to internal format, using the
'mr2' conversion which multiplies by 100 and truncates the decimal
portion.
check.date = '10/28/93'
print iconv(check.date,'d')
9433
This example converts 'check.date' to internal format, using the
'd' conversion. (see the 'd' processing code.)
string = 'john*paul*george*ringo*stuart'
print iconv(string,'g0*2')
john*paul
This example performs an Access group extract of two groups.
input ans,1
if iconv(ans,'p('y');('n')')#'' then ...
If 'ans' contains 'y' or 'n', the statements
following the 'then' clause are executed.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
