Jump to content
  • 0

How to Remove Save List Item With name value


Rizuki

Question

Hellow to all pro and master here can you help me

How can i function my gg.removeListItem() to remove the value with name in SaveList

Like this but i got error 

 

Please help me to all master here

function ON(on)
  .setRanges(gg.REGION_C_BSS | gg.REGION_ANONYMOUS )
gg.searchNumber('-1,057,677,640D;-1,057,761,526D;1,110,143,140D', gg.TYPE_DWORD)
gg.searchNumber('-1057677640D;-1057761526D', gg.TYPE_DWORD)
local t = gg.getResults(15)
for i, v in ipairs(t) do
t[i].freeze = true
t[i].name = 'DRV'
end
gg.addListItems(t)
gg.clearResults()
end

function OFF(off)
  local del = {}
  local ros = gg.getListItems()
  do
    do
      for i, i in ipairs(ros) do
        if i.name == "DRV" then
          table.insert(nil, i.address)
        end
      end
    end
  end
  gg.removeListItems(del)
  gg.clearResults()
end

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

On 3/17/2020 at 12:28 PM, Enyby said:

Answer to both posts: get all values to table, iterate over table, if name matches do some actions with item (delete/edit).

How can i delete this post after being helped 😄

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.