QMIConv() |
|
|
The QMIConv() function converts data to internal form using a conversion code. It is analogous to the QMBasic ICONV() function.
Format
where
The QMIConv() function returns a string representing the converted data. The QMStatus() function returns zero after a successful conversion. A non-zero value indicates an error as described for ICONV().
This function is evaluated on the server system to ensure access to all conversion codes and hence requires that a server connection is open.
Examples
The above example converts an external form data in the dt variable to an internal day number, storing this in IntDate. Note that the returned value from QMIConv() is always a string. When using the C API, the memory occupied by this string must be released using QMFree() when no longer needed.
See also: |