GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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

Simple Gamer ArtsSimple Gamer Arts Posts: 249Member, PRO
edited September 10 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 Posts: 249Member, PRO

    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 Posts: 11,417Member, Sous Chef, PRO, Senior Sous-Chef

    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 Posts: 249Member, PRO

    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.