Iconv Function

Converts a string to an internal storage format.

Syntax

Iconv (string, code [ @VM code ] ... )

string evaluates to the string to be converted. If string is a null value, null is returned.

code is a conversion code and must be quoted. Multiple conversion codes must be separated by value marks. Multiple codes are applied from left to right. The second code converts the output of the first, and so on. If code is a null value, it generates a runtime error.

Remarks

The Status function returns the result of the conversion as follows:

0
The conversion was successful.
1
The string was invalid. An empty string was returned, unless string was a null value when null was returned.
2
The conversion was invalid.
3
Successful conversion but the input data might be invalid, for example, a nonexistent date, such as 31 September.