I have a problem with table
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

I have a problem with table

Started by pHaTTy, 10 December, 2003, 18:18:54

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pHaTTy

Hi there,,

I have not a clue, if there is a way of removing a name from a table, without using anything such as text files,

or example

List = { "me", "him", "her" }

is a way to remove Him from the table?

thanx in advance

-phatty
Resistance is futile!

Guibs

Hi,,

Yup,, maybe try that kind of syntax,,
----
for j=1,getn(List) do
		if "itemtoremove" == rawget(List,j) then
			tremove(List,j)
		end
	end
----
It should work... :)

l8tr, ;)
-- Please,... don\'t ask help in Pm,...Forums are made for that, to help everyone & my Inbox pm will be safe,... Thks,,  :))  --
CB forum     /     CB Home page

pHaTTy

yep thx optimus, i just trying to make my knoledge a bit better, thx guibs i try that way, adn thx optimus for coming stright to the rescue :))

EDIT: Hmm post disappeared brrr lol
Resistance is futile!

Optimus

Hi me Thought you didn't need it, me saw Guibs his post Brrr

I'm terible sorry

Shell i post it again :D

pHaTTy

Great thanx guibs works like a charm

function DoChecking()
	for a,b in SettingsList do
		user = GetItemByName(b)
		if user == nil then
			for j=1,getn(SettingsList) do
				if "itemtoremove" == rawget(SettingsList,j) then
					tremove(List,j)
				end
			end
		end
	end
end


WOOO

:D:D:D
Resistance is futile!

pHaTTy

QuoteOriginally posted by Optimus
Hi me Thought you didn't need it, me saw Guibs his post Brrr

I'm terible sorry

Shell i post it again :D


lol np :)) thanx anyways tho m8 :))
Resistance is futile!

Guibs

nice one,, happy to see it works,,... & yw, Phatty,, ;)

Optimus,, nice to see you around too,, :)


l8tr, ;)
-- Please,... don\'t ask help in Pm,...Forums are made for that, to help everyone & my Inbox pm will be safe,... Thks,,  :))  --
CB forum     /     CB Home page

pHaTTy

Resistance is futile!

SMF spam blocked by CleanTalk