[JW Lua] FCTextExpressionDef:GetCategoryID returns FCCategoryDef.ItemNo and not FCCategoryDef.ID ... solved

Jan Angermüller jan at angermueller.com
Thu Mar 24 13:24:22 CET 2016


Problem solved ... I accidentally worked with undefined (probably 
deleted ?) categories where ItemNo and ID don't match.
For the regular categories everything behaves correctly, i.e. 
FCTextExpressionDef:GetCategoryID returns the ID.

Jan

Am 24.03.2016 um 13:04 schrieb Jan Angermüller:
> Jari,
>
> I noticed that FCTextExpressionDef:GetCategoryID returns 
> FCCategoryDef.ItemNo (and not FCCategoryDef.ID).
> This is correct as FCCategoryDef.ItemNo also includes user-defined 
> categories, while FCCategoryDef.ID only goes from 1 to 7 (7 is used 
> for all (!) user-defined categories), but the function name is a bit 
> unclear.
> Maybe you could add one sentence to the online documentation about the 
> difference.
>
> Best,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>





More information about the JWLua mailing list