Zum Inhalt

.Add (.string[][] Objektmethode)

Beschreibung

Fügt die angegebenen Elemente dem Array hinzu. Appends one string or all elements of another string array to the array. Returns the new array size.

Argumente

Name

Typ

Beschreibung

Value

string, string[]

Elemente, die dem Array hinzugefügt werden sollen.

Rückgabewert integer

Anzahl Elemente im Array nach der Operation. new size of the array

Beispiel

Las_Text = StringArray(0);
for (Li_i=0;Li_i<5;Li_i++)
{
A = Las_Text.Add("Text"+Li_i);
}

Ergebnis: Las_Text = [“Text0”,”Text1”,”Text2”,”Text3”,”Text4”]
A = 5

Las_Text = StringArray(0);

A = Las_Text.Add(["Text0","Text1","Text2","Text3","Text4"]);

Ergebnis: Las_Text = [“Text0”,”Text1”,”Text2”,”Text3”,”Text4”]
A = 5