Posted: Fri Feb 08, 2019 4:02 am Post subject: How do I instantiate a new MemoryRecord (or other class)?
I'm trying to create a MemoryRecord from scratch so I can populate it and add it as a child to an existing MemoryRecord. How do I do this?
Code:
{$lua}
[ENABLE]
if memrec == nil then
memrec = AddressList.getMemoryRecordByID(11)
end
child = MemoryRecord.new() -- "attempt to index a nil value (global 'MemoryRecord')"
table.insert(memrec.Child, child)
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