Data.FmtBcd.VarFMTBcdCreate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VarFMTBcdCreate(var ADest: Variant; const ABcd: TBcd);
function VarFMTBcdCreate: Variant;
function VarFMTBcdCreate(const AValue: string; Precision, Scale: Word): Variant;
function VarFMTBcdCreate(const AValue: Double; Precision, Scale: Word): Variant;
function VarFMTBcdCreate(const ABcd: TBcd): Variant;

C++

extern DELPHI_PACKAGE void __fastcall VarFMTBcdCreate(System::Variant &ADest, const TBcd &ABcd)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.FmtBcd.pas
Data.FMTBcd.hpp
Data.FmtBcd Data.FmtBcd

Description

Creates a new Variant that stores its value internally as a TBcd value.

Call VarBcdCreate to obtain a Variant that stores its value as a TBcd value.

Using the first syntax, the Variant returned as aDest has the same value as ABcd.

Using the second syntax (passing no arguments), the returned Variant has a value of NullBcd.

Using the third syntax, the returned Variant has the same value as ABcd.

Using the fourth syntax, the returned Variant converts AValue (if necessary) to extract the value.

Using the remaining syntaxes, the AValue parameter is converted into a TBcd value with the specified Precision and Scale and the result is the value of the Variant.

See Also