Check18Digits
Methode (Sub)
Check18Digits ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Normalizes a numeric string longer than 17 characters so that it has at most 18 significant digits: thousands separators, spaces and apostrophes are removed, leading/trailing zeros dropped and the fraction rounded if needed.
Hinweis: Strings of 17 characters or fewer are left unchanged. If normalization fails (e.g. more than 18 integer digits or non-numeric input), the trimmed original value is kept. Nothing becomes an empty string.
Deklaration
Public Sub Check18Digits(ByRef inputnumber As String)
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
inputnumber | String | erforderlich | Number as string; replaced by the normalized value (input/output) |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim inputnumber As String = ""
alo.Check18Digits(inputnumber)
Aufruf (C#)
var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice; // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
string inputnumber = "";
alo.Check18Digits(ref inputnumber);