TableSearch bug, displays "hello world!" instead of row#

Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305
edited September 2018 in Working with GS (Mac)

Hi,

So I'm using the "TableSearch" function correctly as far as I'm concerned, but it displays Hello World! instead of row#... glitch in the matrix?

Comments

  • Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305

    I'm being very creative, finding other ways to search for "row#" that "contains" X number...

    Such a shame GS's tableSearch is glitched...

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    One reason for "Hello World!" appearing is if you are using a row/column value that is out of the range of your table.

    For example, using the following table:

    And the following function in a Display Text behavior:

    tableSearch( game.Table 1 ,"F","col",3,1,99,"exact")

    The result is "Hello World!"

    But by changing the 99 to 3 (the highest possible row value for the table above):

    The result is "2"

    So I would question whether the attribute values you are using are exceeding the range of your table (or becoming ≤ 0).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305

    Thanks for that @tatiang

    It's good to know the origin of an error message; will be looking out for that.

Sign In or Register to comment.