Adding Cell Values

ingenious.applicationsingenious.applications Member Posts: 102
edited July 2012 in Working with GS (Mac)
Hey, guys. I've looked around on the forums with no luck, so I wanted to know if anyone knew if a quick way to add all the cell values (which periodically change) of a table together so that I can use that result in other areas.

Thanks

Comments

  • ingenious.applicationsingenious.applications Member Posts: 102
    If I am thinking about that correctly, that would mean that I would have to write that small section "tablecellvalue(table1,1,2)" in a similar manner for each table cell that I would like to add. I started doing so in another way already, but I was hoping there would be something quicker as I'll be combining a few hundred values together as the end result.
  • lukey5227lukey5227 Member Posts: 111
    Use an "every 0 seconds" timer. Make the variables colvar and rowvar.

    Make a rule in the timer saying (if col < MaxCol AND row ≤ MaxRow) {Change game.value to tablecellvalue(table1,covarl,rowvar) }

    Make another rule saying that (experiment with it in and outside the timer. I don't think it makes a difference but I might be wrong)

    If (colvar = 15)
    {
    Change rowvar to rowvar + 1
    }

    Make sure to add a "Change colvar to colvar + 1" right after the "Change game.value..." (inside that same rule).

    Hope that helped!

    P.S. There are faster versions of timers rather than "Every 0 seconds" that you can look around and find on the GSForums!

    - 5227
Sign In or Register to comment.