srv_willconvert

Determines whether a specific datatype conversion is available within the ODS Library.

Syntax

BOOL srv_willconvert (
int
srctype,
int
desttype );

where

srctype
Indicates the datatype of the data to be converted. This parameter can be any of the Open Data Services datatypes.
desttype
Indicates the datatype that the source data is converted to. This parameter can be any of the Open Data Services datatypes.

Returns

TRUE if the datatype conversion is supported; FALSE if the datatype conversion is not supported.

Remarks

The following table shows the datatype conversions that srv_willconvert checks for. The source datatypes are listed on the left, and the destination datatypes are listed across the top. For brevity, the prefix "srv" has been eliminated from each datatype. T (True) indicates that the conversion is allowed; F (False) indicates that the conversion is not allowed.

Conversion to and from all Open Data Services datatypes is supported, except for conversion from SRVDATETIME or SRVDATETIME4 to these datatypes, and from these datatypes to SRVDATETIME or SRVDATETIME4:

For a description of each datatype, see Datatypes.

See Also

This entry For information about
srv_convert Converting datatypes