RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.CompatibleConversionTypes Function

Indicates whether the Convert function can convert between two specified conversion types.

Pascal
function CompatibleConversionTypes(const AFrom: TConvType; const ATo: TConvType): Boolean;
C++
Boolean CompatibleConversionTypes(const TConvType AFrom, const TConvType ATo);

CompatibleConversionTypes returns true if AFrom and ATo are in the same conversion family, false otherwise.  

When two conversion types are in the same family, the Convert function can convert between measurements that use them. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!