Keyboard input and table search
mentat2963
Member, PRO Posts: 11
Hi All,
I'm struggling to do the following and hoping someone can help:
1) Prompt user for a keyboard input
2) Save that keyboard input
3) Search column 16 in my table between rows 1 and 241 for that keyboard input and determine the row number
The way I've tried to do it is to save the keyboard input as "game.TextStringSearch" and then use table search which unfortunately always returns a value of 0:
tableSearch( game.Table 1 ,game.TextStringSearch,"col",16,1,241,"exact")
I also tried putting quotes around game.TextStringSearch as follows but that still did not work:
tableSearch( game.Table 1 ,"game.TextStringSearch","col",16,1,241,"exact")
Anyone have any suggestions or examples that they can share?
Thank you!!
Comments
Here's a demo.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User