When I use the
propertyBag:GetFromDisk()
I get this error:
attempt to call method ‘GetFromDisk’ (a nil value)
my code is:
local prop = require("property")
local propertyBag = prop:init()
--Properties created in memory
propertyBag:setProperty("myNumber", 2)
--Save this to the disk
propertyBag:SaveToFile()
--read saved data from Disk
propertyBag:GetFromDisk()
print ( propertyBag:getProperty ("myNumber" ))
I can just delete that row and it works fine, but why is it written on other places in the forums? [import]uid: 24111 topic_id: 12729 reply_id: 312729[/import]