basic.iconv

Function/BASIC Program, Releases: AP and R83

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

Command Name Type Description
basic.statements Definition Definition of statements and functions.
basic.masking.function Definition Performs formatting of output data values.
basic.match Relational Operator Pattern matching function.
pc.translate Processing Code Translate function.
basic.user.exits User Exit List of Pick/BASIC user exits.
tcl.set-date-std Verb: Access Toggles date display to mm/dd/yy format.
pc.mc Processing Code Mask character functions.
pc.mx Processing Code Mask hexadecimal function.
pc.text.extract Processing Code Text extraction function.
tcl.date.iconv Subroutine Calls external subroutine to iconv date argument.
pc.mt Processing Code Mask time conversion.
basic.conv.expression Definition An expression which evaluates to a valid processing code.
basic.oconv Function Output conversion function.
tcl.date Verb: Access Converts dates to various formats.
pc.m Processing Code Mask numeric/string functions.
basic.functions Definition elements in FlashBASIC or Pick/BASIC language expressions, returning a single value in place, as a function of the arguments. A function can be used anywhere a variable or expression is used.
pc.my Processing Code Mask hexadecimal to ASCII function.
pc.d Processing Code Date conversion.
pc.mp Processing Code Converts decimal to packed decimal and back.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.