PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Table cell
  • Initializing and re-initializing of the Modified property
  • Limits
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).
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
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 re-initializing 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).

Limits

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.
Java The Modified property applies only to the following elements:
  • Button.
  • Edit control.
  • Check Box.
  • Radio Button.
  • List Box.
  • Combo Box.
  • TreeView.
  • Tab.
  • Window.
  • Table.
  • Table column.
  • Supercontrol.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment