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

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


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




More information about the JWLua mailing list