Home | Sign in | English EN
  • What is the UMC?
  • How to enable/disable the UMC?
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
11. User Macro-Code: UMC in practice
Previous pageTable of contentsNext page
What is the UMC?
The UMC is an option allowing the advanced users to create their own processes in the application. The end user can type WLanguage code and include it in an existing application.
The added processes can be forwarded to the developer so that they can be added into the source code of the application.
Several WLanguage features are accessible to the user and restrictions can be defined by the developer. For example, forbid the use of functions for file management. To insure the integrity of data, the commands for modifying or adding records are not available to the user.
How to enable/disable the UMC?
This feature can be disabled for a window or for the entire application.
To disable the UMC on a window, check "Forbid the use of U.M.C." in the "Details" tab of the window description.
To manage the UMC on the project:
  1. Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
  2. Display the "Advanced" tab. By clicking the "User Macro Code" button, you have the ability to allow or forbid the input of User Macro Code for the entire application. Two options will be available if you allow it:
    • Allow the use of HFSQL commands (HReadFirst, HFilter, HAdd, ...).
    • Accept the suggestions made by the users.
This second option allows the application to send an email when the user creates a macro code. The "*.MCU" file corresponding to the macro code is sent in attachment. This allows you to easily retrieve the suggestions made by the users and automatically include them in your project! WINDEV includes an option for importing "*.MCU" files (on the "Project" tab, in the "Project" group, expand "Import" and select "User Macro-Codes...").
Previous pageTable of contentsNext page
Click [Add] to post a comment