Zum Inhalt

GetAmountText (Opus Funktion)

Beschreibung

Gibt den Betrag als String mit 2 Nachkommastellen zurück. Formats a monetary amount as a string with Swiss-style thousands separators and exactly two decimal places.

Argumente

Name

Typ

Beschreibung

Amount

float

Betrag

Rückgabewert string

Es wird ein String zurückgegeben, welcher die typische Formatierung für Beträge hat, also mit Tausendertrennzeichen. formatted amount string with thousands separator apostrophe and two decimal places (e.g. "1'234.50")

Beispiel

TableResult.Text[Li_i+1][3] = GetAmountText(f_Amount);

Siehe auch