ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
  • Table cell
  • Initializing and reinitializing 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).
WEBDEV - Browser code This Property is only available on the input fields.
Example
// Si le champ "SAI_NomClient" a été modifié par l'utilisateur,
// les modifications sont enregistrées dans le fichier de données lié
IF SAI_NomClient.Modifié = True THEN
ScreenToFile()
HModify(Client)
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:
SI [<Nom de la colonne>].Modifié ALORS ...

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).

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.
Android Widget The Modified property applies only to the following elements:
  • Button control.
  • Window.
WEBDEV - Browser code The Property Modified applies only to input fields.
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Modified
https://youtu.be/TjzqSMDnK7g

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2057-windev-comandos-51-modified.html

// closing WIN_FORM_EMPRESA
IF EDT_Razao_social..Modified=True THEN
IF Dialog("Foi Alterado Razao Social Deseja Gravar",["Sim","Nao"],1,2)=1 THEN
ScreenToFile()
HSave(empresa)
END
END
amarildo
27 Mar. 2019
WebDev Support
It would be nice to have this in WebDev

Thanks
diegom
28 Feb. 2018