QMOConv(), QMOConvs()

QMOConv(), QMOConvs()

Top  Previous  Next

 

The QMOConv() function converts data to external form using a conversion code. It is analogous to the QMBasic OCONV() function. The QMOConvs() function is similar but works on each element of a dynamic array in turn.

 

The function arguments are:

 

Datais the data to be converted.

 

Codeis the conversion code to be applied.

 

 

The QMOConv() 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 OCONV().

 

This function is evaluated on the server system to ensure access to all conversion codes and hence requires that a server connection is open.

 

The examples below convert an internal form date in the IntDate variable to external form, storing this in ExtDate. Note that the returned value from QMOConv() is always a string.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python

 

 

See also:

QMIConv()