Table rows won't index by string?
domenius
Member Posts: 108
I have an issue that seems to have cropped up for no reason in regards to accessing table values by string via tableCellValue. The following code used to work and now it does not:
tableCellValue(game.myTable,"desiredRow",1)
In game.myTable, the row is named (using the table editor in GS creator) "desiredRow". This would grab the value of column 1 in the row named "desiredRow". This method of getting values from tables is very useful in a number of cases where indexing by number is not practical. Can anyone else confirm this issue (I'm pretty sure most GS users were unaware of this feature to begin with!) and can someone from the GS team let me know if this feature has been dropped for some reason? Thanks!
Comments
I'm having the same problem in one of my games... I'll have to update 40+ actors so that they grab the right cell...
Hmm... still works for me in version 0.11.0.13.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
But not in version 0.11.1.11. Ah, I see it's a reported bug and it has been fixed in the next public release of Creator.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User