ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Various properties
  • Table cell
  • Initializing and reinitializing of the Modified property
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Modified property is used to determine if a control or group of controls has been modified by the user (keyboard or mouse input).
Example
// If the "EDT_CustomerName" control was modified by the user,
// changes are saved in the bound data file
IF EDT_CustomerName.Modified = True THEN
ScreenToFile()
HModify(Customer)
END
Syntax
<Result> = <Element used>.Modified
<Result>: Boolean
  • True if:
    • the specified control was modified by the user,
    • the option "Store the last value entered" was selected by the user in the popup menu of the control,
    • at least one control belonging to the specified group of controls was modified by the user,
    • at least one control belonging to the specified window was modified by the user.
  • False otherwise.
<Element used>: Control name or window name
Name of the element (control, group of controls or window) to use.
Remarks

Table cell

To determine if a table cell has been modified, simply use the Modified property in the exit code of the column:
IF [<Column name>].Modified THEN ...

Initializing and reinitializing of the Modified property

The Modified property is set to False when the window is opened.
The Modified property is reset to False only through programming (<Object name>.Modified = False).
Tip: When modifying a control through programming, you can directly manipulate the Modified property of the window. A validation process can easily check whether a modification was performed (in this case, there is no need to evaluate the Modified property on each window control).

Limitations

The Modified property cannot be used on:
  • a Shape control,
  • an option in a Check Box or Radio Button control,
  • a menu,
  • an element in a TreeView control,
  • a tab pane,
  • a Web Camera control,
  • a Conference control,
  • a Splitter control.
Android Widget The Modified property can only be used with the following elements:
  • Button control.
  • Window.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/17/2023

Send a report | Local help