-- creating fisrt record (base address)
local baseAddress = '000F6AF0' -- assuming has base address
al=getAddressList()
mr = al.createMemoryRecord() -- base address
mr.setAddress(baseAddress)
mr.Description = "My Test MemRec"
-- mr.Type = vtByte
-- etc
-- creating child
local child1 = al.createMemoryRecord()
child1.setAddress('0010ABF8')
child1.setDescription('Child 1 of My Test MemRec')
child1.appendToEntry(mr)
-- creating second child
local child2 = al.createMemoryRecord()
child2.setAddress('00990244')
child2.setDescription('Child 2 of My Test MemRec')
child2.appendToEntry(mr)
-- delete child 1
memoryrecord_delete(child1)
To delete all memory record created (from somewhere on this forum):
Code:
function removeAllCreatedMemoryRecords()
for _,v in pairs(IDsOfCreatedMR) do
local mr = addresslist_getMemoryRecordByID(al,v)
if mr~=nil then memoryrecord_delete(mr) end
end
end
I don't know how to copy an memrec. _________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum