The documentation on IDE scripting is pretty sparse. I can see how to create a new enum & change the declaration.
As far as I know, there’s no way to do this in scripting. The only way would be to use the “+” button in the enum editor.
Thanks Jason I’ve added a case to feedback <https://xojo.com/issue/68567> to request this to be added.