900 new features in WINDEV, WEBDEV and WINDEV Mobile 2026
REACTIVE PROCEDURES FOR MOBILE SIMPLIFIED PROGRAMMING OBSERVER DESIGN PATTERN 753 N e w f e a t u r e W D W B WM A POWERFUL CONCEPT Reactive Procedures first appeared in WINDEV. In version 2026, they become available for mobile applications. Reminder: A reactive procedure is executed when a variable or when the value or content of a control used in the procedure is modified, either by the end user or programmatically. The Reactive Procedure constantly "observes" the associated variables and controls to detect changes in value, and is automatically executed in this case. Benefit of this new feature in version 2026: Intuitive programming 754 N e w f e a t u r e W D W B WM UNIQUE AND CENTRALIZED CODE The main advantage of the reactive procedure approach is that the framework is the one that observes for changes in value of a control. There's no need to write the calls in every control where changes can be made. This translates into zero resource consumption, because the framework takes care of everything in an optimized way. It's the control (or variable) that automatically notifies changes in its values to the reactive procedure. The single, clear code of the Reactive Procedure makes it possible to observe and update different controls and variables without a single line of code. Benefit of this new feature in version 2026: Code once and let the magic happen 755 N e w f e a t u r e W D W B WM HOW TO DECLARE A REACTIVE PROCEDURE The Reactive keyword indicates that the procedure must observe the variables and controls used in its code. It also executes the procedure when a change is detected. REACTIVE PROCEDURE CalculateTotal () A Reactive Procedure can be global (and therefore permanently reactive), local to a window or local to a control. Benefit of this new feature in version 2026: You decide the scope 756 N e w f e a t u r e W D W B WM REACTIVE PROCEDURE OPTIONS Reactive procedures offer 2 options: • Delay: Execute after a given time period. For example, you can set the procedure so that it is executed 100 milliseconds after a value change. • Execution: Reactive Procedures can be programmatically executed. Benefit of this new feature in version 2026: Power 757 N e w f e a t u r e W D W B WM CASCADE A reactive procedure can modify a variable or a control used by another reactive procedure. In this case, the other reactive procedure will be executed. Note that the framework implements the necessary security mechanisms to avoid calls in a loop. Benefit of this new feature in version 2026: Code smarter, not harder A REACTIVE PROCEDURE IS EXECUTED AUTOMATICALLY EACH TIME A CONTROL OR VARIABLE IS MODIFIED Wh a t ' s n e w i n W I ND E V 2 0 2 6 WE B D E V 2 0 2 6 W I ND E V Mo b i l e 2 0 2 6 84
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==