Posted: Tue Nov 24, 2026 7:30 am Post subject: Print all records of a table
I was organizing the records of an old table into groups. I was overzealous and moved a record into a group that should not have been. I asked the question how to print all records some time ago but have forgotten
Code:
al= getAddressList()
for x =0,al.Count-1 do
print(al.Description)
end
doesn't print anything how should I edit to print the addresses of all the table's records?
While waiting I tinkered with different combinations and found success
Code:
al= getAddressList()
for x =0,al.Count-1 do
print(al.MemoryRecord[x].Description)
end
Then learn Lua syntax about string.format:
-> %s: Stands for String. It takes the first variable after the comma (mr.Description, for example, such as "Player Health") and inserts it as plain text.
-> : : A literal colon and space that are printed exactly as they appear.
-> %X: Stands for Uppercase Hexadecimal. It takes the second variable (mr.CurrentAddress) and formats the number as a base-16 hex address. _________________
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