This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

guidance on databases in logic machine
#3
(07.09.2017, 06:04)admin Wrote: In most cases you don't need to access internal database directly but use provided functions instead. To get all objects you can use grp.all(): http://openrb.com/docs/lua.htm#grp.all

Here's an example that logs group address, name and current value for first 5 objects:
Code:
objects = grp.all()

for i, object in ipairs(objects) do
 log(object.address, object.name, object.value)
 if i == 5 then
   break
 end
end
Hi,thank you very much if it works for me
Reply


Messages In This Thread
RE: guidance on databases in logic machine - by Carlos Padilla - 07.09.2017, 13:42

Forum Jump: