basic.iconv Function/BASIC Program
basic.iconv
| Command | basic.iconv Function/BASIC Program Applicable release versions: AP, R83 |
|---|---|
| Category | BASIC Program (486) |
| Description | converts a value from its external format to its internal equivalent, according to the processing code being applied. |
| Syntax | iconv(string.expression, conv.expression) |
| Options | |
| 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. |
| Purpose | |
| Related |
basic.statements basic.masking.function basic.match pc.translate basic.user.exits tcl.set-date-std pc.mc pc.mx pc.text.extract tcl.date.iconv pc.mt basic.conv.expression basic.oconv tcl.date pc.m basic.functions pc.my pc.d pc.mp user.exits.introduction |
