Method: Re-constructor ReInit()

Every class and class variant definition may implement its own re-constructor. Re-constructors are specialized methods, which are invoked automatically when the language selection changes at the runtime. Accordingly the objects may re-evaluate their initialization code and update themselves to the newly selected language. In Embedded Wizard, re-constructors are usual methods named explicitly with the identifier ReInit and declared without any return value and any parameters:

Declaration of a re-constructor method within the Code Editor window.

Unlike an ordinary method, re-constructors are invoked by the system only. Calling the ReInit() method directly from another method is not possible. Moreover, in derived classes when the re-constructor method is overridden, the system ensures automatically, that starting with the oldest ancestor class every re-constructor implementation is being called. The usage of the pseudo method super() is not necessary and even not possible.

Add new ReInit() method

If there is no ReInit method inherited from an ancestor class, you have to add a new method explicitly:

First add a new method to your class.

Rename the method as ReInit.

Open the method for editing in Editor window.

Adapt the declaration of the method, so that it has no parameters and its return type is void. See Edit the return data type of the method and Delete a method parameter.

Override inherited ReInit() method

If there is already an ReInit method inherited from one of the ancestor classes:

Override this method first.

Then open the method for editing in the Editor window.

Implement the ReInit() method

ReInit() methods are implemented similarly as you do with ordinary methods.