Data.FmtBcd.TryStrToBcd
Delphi
function TryStrToBcd(const AValue: string; var Bcd: TBcd): Boolean;
function TryStrToBcd(const AValue: string; var Bcd: TBcd; const Format: TFormatSettings): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall TryStrToBcd(const System::UnicodeString AValue, TBcd &Bcd)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Data.FmtBcd.pas Data.FMTBcd.hpp |
Data.FmtBcd | Data.FmtBcd |
Description
Convertit une chaîne en la valeur décimale codée binaire (BCD) correspondante.
Utilisez TryStrToBcd pour convertir une chaîne en valeur décimale codée binaire. Les décimales et la précision sont déduits des chiffres présents dans la chaîne.
TryStrToBcd convertit la chaîne spécifiée par aValue et renvoie la valeur BCD résultante en tant que Bcd.
TryStrToBcd renvoie true si aValue peut être correctement convertie en valeur TBcd. Si aValue ne peut pas être convertie en valeur TBcd, TryStrToBcd renvoie false.