Homeworld 2 : Functiontremove
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
tremove(<tTable> [, <iPos>])

Description (from LUA 4 Manual: 6.1 Basic Functions
"Removes from table the element at position <iPos>, shifting other elements to close the space, if necessary. Returns the value of the removed element. The default value for <iPos> is n, where n is the result of getn(table) (see Section 6.1), so that a call tremove(t) removes the last element of table t. This function also sets or decrements the field n of the table to n-1.
This function is equivalent to the following Lua function, except that the table accesses are all raw (that is, without tag methods):"
function tremove (t, pos)
	local n = getn(t)
	if n<=0 then return end
	pos = pos or n
	local value = t[pos]
	for i=pos,n-1 do
		t[i] = t[i+1]
	end
	t[n] = nil
	t.n = n-1
	return value
end

Example

Arguments
<tTable>: the table to remove an element from.
<iPos>: the position of the element within the table to remove.

Related Functions
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
FunctionTimer_Start.html
100%
00:00
539 KB
2.46 MB/s
FunctionTimer_Start.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionTimer_Start.html
Status:
539 KB / 539 KB ( 2.46 MB/s )
File Size:
539 KB
Virus scan:
Time Start:
2019.08.21 - 13:15:03
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.34 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionTimer_Add.html
100%
00:00
529 KB
2.60 MB/s
FunctionTimer_Add.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionTimer_Add.html
Status:
529 KB / 529 KB ( 2.60 MB/s )
File Size:
529 KB
Virus scan:
Time Start:
2019.08.21 - 13:15:12
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.45 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
Functiontan.html
100%
00:00
530 KB
2.45 MB/s
Functiontan.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\Functiontan.html
Status:
530 KB / 530 KB ( 2.45 MB/s )
File Size:
530 KB
Virus scan:
Time Start:
2019.08.21 - 13:15:21
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.32 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
Functiontag.html
100%
00:00
530 KB
2.35 MB/s
Functiontag.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\Functiontag.html
Status:
530 KB / 530 KB ( 2.35 MB/s )
File Size:
530 KB
Virus scan:
Time Start:
2019.08.21 - 13:15:31
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.24 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop