Tuto WINDEV 25

Part 4: Full application with data 263 Teamwork A developer creates and maintains an external component that is made available to other developers. No risk of modifications "made by mistake"! The huge projects The external components allow you to have several small projects as well as a central project in which the elements found in the other projects are visible. The external components are a lot more convenient to use than the libraries (WDL files). The databases accessed by several projects When the same database is accessed by several projects, you often find inconsistencies in the database caused by modified or old source code. By grouping the operations used to access the database (at least in write mode) in an external component, a single source code must be checked and maintained ; therefore, the risks of database inconsistency are reduced. Furthermore, using a component avoids recompiling the application when the analysis is modified. The processes used in several projects Complex processes are often used in several projects. These processes can be re-used via "sets of procedures" or "classes". In this case, the modifications may not be applied to the different projects, making these elements no longer compatible between themselves. Using external components prevents such out-of-sync modifications, preserves the compatibility between projects and simplifies the common modifications. Furthermore, the PRIVATE keyword allows you to ensure the confidentiality of your code at all levels of external component. When re-using your external component in another WINDEV project, the call to a PRIVATE procedure will not be allowed but the documentation regarding the use of procedure will be displayed! The ability to distribute a feature or set of features The external components allow you to develop a feature or a set of features. Other WINDEV developers will be able to include these features in their own projects. The developers who are using an external component can see the component elements that are made visible. However, the source code cannot be viewed or modified. Your external components can be distributed (free of charge or not)! Multi-product external component An external component can be intended to operate in: • a WINDEV application, • a WEBDEV application, • a WINDEV Mobile application, • the three types of applications. In this last case, WINDEV allows you to: • include the elements coming from different products (WEBDEV and/or WINDEV Mobile) in the same external component. • specify the corresponding WLanguage code for each runtime platform (for example, a window is displayed by Open in WINDEV and a page is displayed by PageDisplay in WEBDEV).

RkJQdWJsaXNoZXIy NDQ0OA==