ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The StoreTheValue property is used to:
  • Find out whether a control keeps its value between two application starts via the persistence.
  • Modify a control so that it keeps (or not) its value between two application starts via the persistence.
This property corresponds to the "Memorize value" option available in the "Detail" tab of the field description window:
  • Check box/Radio button,
  • Combo box/List box,
  • Edit control,
Example
c is Control
c <- ControlCreate("EDT_Date_1", typDate, 0, 0, 100, 20)
c.Caption = "Today's date"
c.StoreTheValue = True
Syntax

Finding out whether a control keeps its value between two application starts Hide the details

<Result> = <Control used>.StoreTheValue
<Result>: Boolean
  • True if the control keeps its value between two application starts,
  • False otherwise.
<Control used>: Control name
Name of the control to be used. This control can be:
  • a Check Box or Radio Button control,
  • a Combo Box or List Box control,
  • an Edit control,

Modifying a control so that it keeps (or not) its value between two application starts Hide the details

<Control used>.StoreTheValue = <New mode>
<Control used>: Control name
Name of the control to be used. This control can be:
  • a Check Box or Radio Button control,
  • a Combo Box or List Box control,
  • an Edit control,
<New mode>: Boolean
  • True if the control must keep its value between two application starts,
  • False otherwise.
Remarks
  • If this property is set to True after the initialization step, the control will not take the previous value.
  • This property is useful to configure the controls created by ControlCreate and ControlClone.
  • This property corresponds to the "Store the value" option found in the AAF context menu (Automatic Application Features). When a field is created with the ControlCreate function, the end user has access to the FAA menu: he can add persistence management a posteriori (unless the option is deactivated with the AAFDisable function.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help