<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68);display:inline">Thanks, Jan, for your response!</div></div><div class="gmail_quote"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Do you have any idea why the </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">staff:Load(id)</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">is not working?</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Along the way, I read that the id has to be of type "CMPER", but I have no clue how to cast id (which is of type number) to a CMPER... and so far i didn't find an example...</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">It is also weird, because just doing the 3-line sample from the class browser with handing over an existing id like this:<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><div class="gmail_default">-- Process single item:</div><div class="gmail_default">local staff = finale.FCStaff()</div><div class="gmail_default">if staff:Load(29) then</div><div class="gmail_default"> print(staff:CreateTrimmedFullNameString().LuaString)</div><div class="gmail_default">end</div><div class="gmail_default"><br></div><div class="gmail_default">works perfectly fine; but not so within my if - else statement...</div><div class="gmail_default"><br></div><div class="gmail_default">All the best,</div><div class="gmail_default">Robert</div></div><br></div>
</div></div>