[JW Lua] Hello World

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Oct 15 20:39:58 CEST 2013


Dave and all,

One more thing I noticed in the sample code: I personally prefer to use 
properties rather than setters, when properties are available. I think 
the code becomes more clear, so instead of:

> newText:SetFirstPage(1)
> newText:SetLastPage(1)
> newText:SetVerticalPos(-72)
> newText:SetHorizontalPos(1)

you can write:

newText.FirstPage =1
newText.LastPage = 1
newText.VerticalPos = -72
newText.HorizontalPos = 1


Best regards,

Jari Williamsson





More information about the JWLua mailing list