Vai al contenuto

Create New Interfaces

In order to create a new interface, after having enabled the Object Oriented programming, select Project>New object>New definition>Interface. A dialog will be shown asking you to specify the name of the interface and (optionally) a description. Create New Interfaces-image_0After creation, the interface will appear as a new element in the project tree. Create New Interfaces-image_0Now you can add a method prototype: from the interface context menu, select Add method prototype; a dialog will appear asking you to insert the name of the method and (optionally) a description. Create New Interfaces-image_0After creation, the method prototype will appear in the project tree as a subelement of the interface element. Create New Interfaces-image_0By double clicking on the method prototype element, a new editor will be opened in the editor window, allowing you specify the method prototype (which means the required input variables).An interface can extend another interface (only one), in a father-child hierarchy; doing so, the children interface will inherit all the method prototypes of the father interface.To extend an interface select Edit properties from the interface context menu, a new dialog will be shown allowing you to modify several properties, included the extend field. Create New Interfaces-image_0You can see if an interface extends another interface by looking at its property window.