[JW Lua] FCPart:GetName() removes line breaks?

Jan Angermüller jan at angermueller.com
Mon Apr 10 15:48:18 CEST 2023


Robert,

could it be that FCPart:GetName() removes not only enigma commands, but 
also the line breaks?

I.e. a two line name like:

Acoustic Guitar
(Steel Strings)

becomes:

Acoustic Guitar (Steel Strings)

In the documentation it only says:
"/On Finale 2012 and later, the string will be set to the current part 
name each time this method is called. The string is a "print version" of 
the part name, so there's no Enigma commands for flat/sharps in the 
string./"

Test code:
local part=finale.FCPart(finale.PARTID_CURRENT)
local partname=finale.FCString()
part:GetName(partname)
print(partname.LuaString)

Could this be fixed?
Or is this a fix value from the Finale PDK?

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20230410/35ffee31/attachment.htm>


More information about the JWLua mailing list