Jump to content

Archived

This topic is now archived and is closed to further replies.

Dj-jom2x

about setValues when the item is on freeze state

Recommended Posts

1: setValues - editing freeze value doesn't work.. 

r = gg.getListItems()
r[1].freeze = true
gg.setValues(r)

2: setValues can only change values if its not on freeze state

r = gg.getListItems()
r[1].value = 200
gg.setValues(r)
  

you can call the list items again just to see the freeze still false even if you set on true. like this

 r = gg.getListItems()
 r[1].freeze = true
 gg.setValues(r)
 d = gg.getListItems()
 print(d)

maybe im missing something or its gg fault. need clarification thanks..

 

~ godbless you all..

Share this post


Link to post
Share on other sites

1 hour ago, Dj-jom2x said:

1: setValues - editing freeze value doesn't work.. 

Of course no. Freeze used only in addListItems. Not in setValues. Read API docs.

1 hour ago, Dj-jom2x said:

2: setValues can only change values if its not on freeze state

No. It change it. But after short time (around 33 ms) it will be rewritten with freezed value. You need off freeze or change value in freeze.

1 hour ago, Dj-jom2x said:

you can call the list items again just to see the freeze still false even if you set on true. like this

Same as first. Wrong call. Need addListItems, not setValues.

 

Share this post


Link to post
Share on other sites
6 hours ago, Enyby said:

Of course no. Freeze used only in addListItems. Not in setValues. Read API docs.

No. It change it. But after short time (around 33 ms) it will be rewritten with freezed value. You need off freeze or change value in freeze.

Same as first. Wrong call. Need addListItems, not setValues.

 

hmm my target is to change the freeze state and value on savedlist :)programmatically 

any suggestions? so i dont have to search the adresss again and edit it ..

Share this post


Link to post
Share on other sites

Use gg.addListItems instead of gg.setValues.

Share this post


Link to post
Share on other sites

  • Similar Content

    • By RezaHaxz
      PLAY = '✅ ON'
      function fly()
       if PLAY == '✅ ON' then ds()
       elseif PLAY == '❌ OFF' then da()
       end
      if msm == 2 then hax() end
       end
      function ds()
      PLAY = "❌ OFF"
      gg.getListItems(t)
      t.value = '1'
      gg.setValues(t)
      end
      function da()
      PLAY = "✅ ON"
      gg.getListItems(t)
      t[1].value = '0'
      gg.setValues(t)
      end
×
×
  • Create New...