[JW Lua] Delete paga-texts

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Thu Jan 9 12:10:52 CET 2014


On 2014-01-09 11:16, Bart Visser wrote:
> Thanks for your tip. I've tried it, but it still doesn't delete everything in one run:
>
> local page_texts = finale.FCPageTexts()
> page_texts:LoadAll()
>
> for i = page_texts.Count-1, 0, -1 do
> 	p = page_texts:GetItemAt(0)
>     	p:DeleteData()
> end

It was my fault, supplying untested code to you!
Use "page_texts:GetItemAt(i)" instead...


Best regards,

Jari Williamsson






More information about the JWLua mailing list