System.StdConvs.cbDistance

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

cbDistance: TConvFamily;

C++

extern DELPHI_PACKAGE System::Convutils::TConvFamily cbDistance;

Properties

Type Visibility Source Unit Parent
variable public
System.StdConvs.pas
System.StdConvs.hpp
System.StdConvs System.StdConvs

Description

The cbDistance variable designates units that measure Distance.

Use the cbDistance unit variables as parameters to the Convert function to convert a cbDistance measurement to a different set of units. The StdConvs unit registers these cbDistance measurement units in the cbDistance family and assigns the resulting TConvType values to these global variables.

Note: The cbDistance units vary greatly in scale. If you are converting between cbDistances that are all at one extreme (for example between parsecs and light years or between angstroms and microns), you may want to register your own conversion family (for example astronomical distances or microscopic distances) so that the conversions can be made with greater precision.

Note: To initialize these variables in C++ programs, use the InitStdConvs procedure.

See Also