| HUSH | Index Level | id.expression |
| Syntax | ICONV( string.expression, conv.expression ) |
| Category | BASIC |
| Type | Function |
| Description | converts a value from its external format to its internal equivalent, according to the processing code being applied. |
| Options | |
| See Also | statements & functions masking MATCH t (translate) user exits, FlashBASIC set-date-std mc (mask character) mx (mask ASCII to hex) t (text extraction) date.iconv mt (mask time) conv.expression OCONV date m (mask) functions my (mask hex to ASCII) d (date) mp (mask packed decimal) user exits |
| 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. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| HUSH | Index Level | id.expression |