<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
in v0.52 I now have a problem with "empty" text expressions (see
expression 1 in the attached file).<br>
<br>
Code snippet:<br>
local exprdefs = finale.FCTextExpressionDefs()<br>
exprdefs:LoadAll()<br>
for exprdef in each(exprdefs) do<br>
local text=exprdef:CreateTextString() <br>
print(text.LuaString)<br>
end<br>
<br>
In v0.49 it simply printed an empty line:<br>
Running [Unnamed Script] ======><br>
<br>
<======= [Unnamed Script] succeeded (Processing time: 0.001 s).<br>
<br>
In v0.52 it now returns an error message:<br>
Running [Unnamed Script] ======><br>
[string "local exprdefs = finale.FCTextExpressionDefs(..."]:5:
attempt to index local 'text' (a nil value)<br>
<======= [Unnamed Script] FAILED.<br>
<br>
(I didn't check v0.50 and v0.51)<br>
<br>
Of course, I could develop very defensive here and add an "if
(text~=nil) then" in this case, but I thought this would be a
scenario that should always return a valid value - as it did until
v.49.<br>
What do you think about it?<br>
<br>
Best,<br>
Jan<br>
<br>
</body>
</html>