Deleting a wizard created UI form event

There’s nothing in the customization window to delete a form event that was created with the Form Event Wizard.

Do I just go to the Script editor and delete the function, and the calls in InitializeCustomCode() and DestroyCustomCode()? That’s simple enough, but there are the warnings:

// Do not delete 'Begin/End Wizard Added Variable Initialization' lines **

The safest thing would be to hollow out the generated function (so it does nothing), and leave it, the create call, and the destroy call alone. But that seems kind of sloppy.

I delete form event wizard added code by removing the initiation, removal, and method of that code and it works just fine.

That’s what I’ve been doing.

But when it comes to software, “haven’t had any problems” isn’t exactly the same as working properly. :wink:

Haha, well there’s nothing magical about the way it adds the code so that method of removing code is just how it works!