.InsertAt (.float[] Objektmethode)

.InsertAt (.float[] Objektmethode)

Beschreibung

Diese Funktion fügt einem Array einen Wert an einer gegebenen Position hinzu.
Inserts one float or all elements of a float array at Position. Returns the new array size.

Argumente

Name

Typ

Beschreibung

Name

Typ

Beschreibung

Position

integer

zero-based index at which to insert

Value(s)

float

float[]

Wert
a single float to insert or a float array whose elements are all inserted

Rückgabewert integer

Anzahl Elemente nach der Operation..

Beispiel

Text := [1.0,2.0,3.0,5.0,6.0,7.0,8.0];

Result = Text.InsertAt(3,4.0);

Resultat: 8

Text := [1.0,2.0,3.0,5.0,6.0,7.0,8.0];

Result = Text.InsertAt(3,4.0);

Resultat: 8