<div dir="ltr">Also, I just realized the documentation may not be clear. The "type" is not just "some type". It must be one of the CATEGORY_DEDAULTIDS constants. In your case, probably TECHNIQUETEXT.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 10, 2022 at 6:45 AM Robert Patterson <<a href="mailto:robert@robertgpatterson.com">robert@robertgpatterson.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>SaveNewWithType should work in RGP Lua 0.58+. The others will not. If you have an example of SaveNewWithType that fails to create a new category, please post a sample script that fails.<br></div><div><br></div><div>However, creating a new category is just the beginning. To assign expressions to it requires additional code for each expression.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 10, 2022 at 1:29 AM Carl Vine <<a href="mailto:carlvine@iinet.net.au" target="_blank">carlvine@iinet.net.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Can anyone help?<br>
<br>
I’m loading the standard TECHNIQUETEXT FCCategoryDef (ItemNo 5), changing the name and some values, then trying to Save() as a new category.<br>
<br>
SaveNew(), SaveAs(new_unique_id) and SaveNewWithType(some_type) all fail.<br>
Save() succeeds but doesn’t change or update the CategoryDefs collection.<br>
<br>
Carl<br>
<br>
<br>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>
</blockquote></div>