[JWplugins] why DeleteData() doesn't work on FCTextExpressionDef ?

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Thu Jul 3 21:57:30 CEST 2014


Hello!

For JW Lua-specific question, please send your questions to the JW Lua 
mailing list, which is for programming questions and all things JW Lua.

Info about the mailing list is here:
http://jwmusic.nu/jwplugins/wiki/doku.php?id=jwlua:mailinglistinfo

Best regards,

Jari Williamsson


On 2014-07-02 00:08, lists.jc.michel at symetrie.com wrote:
> Hi,
>
>
> Try this :
>
> local teds = finale.FCTextExpressionDefs()
> teds:LoadAll()
> print(teds.Count, "text expressions")
>
> local ted = finale.FCTextExpressionDef()
> ted:Load(4) — replace 4 with the ID of a text expression defined in your file
> print(ted:DeleteData())
>
> teds:LoadAll()
> print(teds.Count, "text expressions")
>
> Here is the output for me:
>
> 416 text expressions
> true
> 3 text expressions
>
> Why deleting a text expression def (not used anywhere in the doc) produces such a mess ?
> Is it a bug of Lua interface ?
> _______________________________________________
> JWplugins mailing list
> JWplugins at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwplugins_jwmusic.nu
>
>






More information about the JWplugins mailing list