AsDisplayString (base type)
property AsDisplayString:String;
Lecture
Retourne une chaîne formaté pour l'affichage.
Exemple
function foo():string;
begin
montant.Devise := TdbfCurrency.Find('CodeISO=%1','',True,['USD']);
montant.Value := 12345.56;
Result := montant.AsDisplayString;
// if locales are FR :
// Result := 12 345,56 (USD)
//
// if locales are US :
// Result := 12,345.56 (USD)
end;
Voir aussi