PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • What is the UMC?
  • How to enable/disable the UMC?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
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. Display the description window of project: on the "Project" pane, 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! Indeed, WINDEV includes an options for importing "*.MCU" files (on the "Project" pane, in the "Project" group, expand "Import" and select "User Macro-Codes...").
Previous pageTable of contentsNext page
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment