Jump to content

[ help ]


Recommended Posts

Posted

i have a grid list 
i when player add a text in memo and press button 

it add a row in grid list

but the problem is i want to check first if is there any row with the same text that player added
how can i get the all rows text and check ?? 
help plz

Posted (edited)

Try using this function:

function gridListHasRowText( text )
	for i=1, #guiGridListGetRowCount(gridList) do
		if guiGridListGetItemText( gridList, i, 1 ) == tostring(text) then
			return true
		end
	end
	return false
end

 

Edited by DNL291

Please do not PM me with scripting related question nor support, use the forums instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...