Jump to content

[ help ]


Recommended Posts

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

Link to comment

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
Link to comment

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...