LM_String What's happening?
Posted: Thu May 11, 2017 4:44 am
Can anyone tell me why
works, but
complains that fName is a nil value on the second print? I'm not really trying to print it twice. I'm renaming styles, but I noticed that
was failing with fName being nil if I did a
before it.
Code: Select all
print(self.moho.document:StyleByID(0).fName:Buffer())
print(self.moho.document:StyleByID(0).fName:Buffer())
Code: Select all
local style = self.moho.document:StyleByID(0)
print(style.fName:Buffer())
print(style.fName:Buffer())
Code: Select all
style.fName:Set()
Code: Select all
style.fName:Buffer()