Mark Gamer Posted May 24, 2017 Posted May 24, 2017 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
DNL291 Posted May 24, 2017 Posted May 24, 2017 (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 May 24, 2017 by DNL291 Please do not PM me with scripting related question nor support, use the forums instead.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now