ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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 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 "Store the value" option found in the "Details" tab of the description window of the following controls:
  • Check box/Radio button,
  • Combo box/List box,
  • Edit control,
  • WINDEV Static tab/Dynamic tab.
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,
  • WINDEV a static Tab control or a dynamic Tab control.

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

<Control used>.StoreTheValue = <New management 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,
  • WINDEV a static Tab control or a dynamic Tab control.
<New management 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 control is created by ControlCreate, the menu of AAFs is available to the end user: the management of persistence can be added thereafter (except if the option is disabled by AAFDisable.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help