Tables - add row and change table value question

goonergooner Lancaster, PAMember Posts: 135

1) Is it possible to add cell values at the same time you're adding a row?
2) If not, can I update multiple cells in a row when using Change Table Value, or is this only one at a time?

Any advice is much appreciated, thanks!

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    You can't change the cell type (integer, real, text, etc) when adding a row.
    You can use the change table value to edit mutual with values at one time. Use the "+" in the behavior.

  • goonergooner Lancaster, PAMember Posts: 135

    @Braydon_SFX said:

    Use the "+" in the behavior. <--- This, thank you!

  • goonergooner Lancaster, PAMember Posts: 135
    edited September 2015

    Another beginner question on adding a row and changing table value :blush:

    When adding a row, is it immediately available to be evaluated in the tableRowCount (if I'm looking to edit that new row for instance) or must I save first then edit?

    For ex:
    1)Add Row
    2)Save Table
    3)Change Table Cell Value (using RowCount)
    4)Save Table Again

    Keep line #2 or is that overkill?

    Thanks!

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

    No need to save the table first. Table changes are made immediately. Saving a table just ensures that the table data & structure will be loaded when the app re-opens.

    Number 1 and number 3 will work by themselves but you'd most likely want to save the table at crucial moments in your app (e.g. when the player passes a level or dies).

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

  • goonergooner Lancaster, PAMember Posts: 135

    @tatiang said:
    No need to save the table first. Table changes are made immediately. Saving a table just ensures that the table data & structure will be loaded when the app re-opens.

    Number 1 and number 3 will work by themselves but you'd most likely want to save the table at crucial moments in your app (e.g. when the player passes a level or dies).

    very helpful, thanks!

Sign In or Register to comment.