Jump to content
Affann

Why is this code not working?

Recommended Posts

rCount2 = gg.getResultCount()
test = rCount2 - 2
gg.toast(test)
for i, v in ipairs(gg.getResults(1, test)) do
  v.freeze = true
  v.value = 0.0
end

 

 

Can someone please explain or fix? The arithmetic is ok I checked with toast but the second last value does not edit and freeze

Share this post


Link to post
Share on other sites

Because you only edit value in table. You need add values to saved list for freeze work. Read API help for examples.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...