Goto http://www.stucuk.netGoto http://www.atlanticaonlinewiki.comGoto http://www.game-requirements.com

Insert/pl

From Original War Support Wiki

Jump to: navigation, search

SAIL Functions/pl -> Insert/pl


Contents

Opis

Funkcja Insert dodaje wartość/jednostkę do listy. Zwraca listę z dodanym elementem.

Szablon

Insert(list:plist index:integer item:tvalue)

list - lista, do której element ma być dodany
index - numer/nazwa elementu przed którym nowy element ma być dodany
item - numer/nazwa elementu, który ma zostać dodany do listy

Użycie

nowa_lista := Insert(lista, element_po_nowym, nowy_element);

nowa_lista - nazwa listy, do której zostanie zapisana lista bez usuwanego elementu
UWAGA! Jeśli element_po_nowym jest równy 1, nowy_element zostanie dodany na samym początku, jeśli element_po_nowym jest większy niż długość listy+1, to pozycje od długości listy+2 do element_po_nowym-1 zostaną wypełnione niezdefiniowaną wartością.

Zobacz także

Personal tools
Clanbase
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Can't contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.