PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • 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 StoredValue property is used to get the value currently stored by:
  • a row in a List Box, ListView or Combo Box control.
  • Versions 24 and later
    WINDEV a "Text token" edit control.
    New in version 24
    WINDEV a "Text token" edit control.
    WINDEV a "Text token" edit control.
  • Versions 27 and later
    a row of a Table control.
    New in version 27
    a row of a Table control.
    a row of a Table control.
The currently stored value can correspond to:
  • for List Box, ListView, and Combo Box controls based on a data file: the value of the stored item defined in the window editor ("Content" tab of the control description):
    Stored value of a Combo Box control
    .
  • for List Box, ListView, and Combo Box controls populated programmatically: the value defined by gStoredValue.
    Reminder: To retrieve the value defined by gStoredValue:
    • use the gStoredValueEnable function.
    • WINDEVUniversal Windows 10 AppAndroidJava check "Return value specified with gStoredValue" ("Details" tab of the control description).
    Remark: This property can be used to retrieve the stored values from a multi-selection List Box.
  • Versions 24 and later
    for "Text token" edit controls: the value of the token.
    New in version 24
    for "Text token" edit controls: the value of the token.
    for "Text token" edit controls: the value of the token.
  • Versions 27 and later
    for a row of a Table control populated programmatically: the stored value of the row. For this type of control, you can also assign the stored value of the row.
    New in version 27
    for a row of a Table control populated programmatically: the stored value of the row. For this type of control, you can also assign the stored value of the row.
    for a row of a Table control populated programmatically: the stored value of the row. For this type of control, you can also assign the stored value of the row.
  • Versions 27 and later
    a structure of the array, for a row of a Table control based on a variable, populated by an array of structures.
    New in version 27
    a structure of the array, for a row of a Table control based on a variable, populated by an array of structures.
    a structure of the array, for a row of a Table control based on a variable, populated by an array of structures.
Versions 16 and later
PHP This property is now available for PHP sites.
New in version 16
PHP This property is now available for PHP sites.
PHP This property is now available for PHP sites.
Versions 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
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
// Values selected in a multi-selection List Box control
i is int = 1
iSelectedRow is int
iSelectedRow = ListSelect(LIST_Cedex, 1)
WHILE iSelectedRow <> -1
Trace(LIST_Cedex[iSelectedRow].StoredValue)
i++
iSelectedRow = ListSelect(LIST_Cedex, i)
END
// Find out the stored value when selecting the 3rd element of the List Box control
Info("The stored value is " + LIST_Cedex[3].StoredValue)
Versions 24 and later
WINDEV
// Find out the value stored by the "Text token" edit control
Info("The stored value is " + EDT_Token.StoredValue)
// Returns for example:
// TOKEN_ADDED+CR+TOKEN_ADDED2
New in version 24
WINDEV
// Find out the value stored by the "Text token" edit control
Info("The stored value is " + EDT_Token.StoredValue)
// Returns for example:
// TOKEN_ADDED+CR+TOKEN_ADDED2
WINDEV
// Find out the value stored by the "Text token" edit control
Info("The stored value is " + EDT_Token.StoredValue)
// Returns for example:
// TOKEN_ADDED+CR+TOKEN_ADDED2
Syntax

Getting the stored value of a List Box, ListView or Combo Box control Hide the details

<Stored value> = <Control used>[<Element index>].StoredValue
<Stored value>: Character string
Value that will be stored if the user selects the element in the specified control.
<Control used>: Control name
Name of the List Box, ListView or Combo Box control to use.
<Element index>: Integer
Index of the element in the control (List Box, ListView or Combo Box) whose stored value is requested.
Versions 24 and later
WINDEV

Getting the value stored in a "Text token" edit control Hide the details

<Stored value> = <Edit control>.StoredValue
<Stored value>: Character string
Stored value. If the control has several tokens, this parameter will have the following syntax:
<Value of Token 1> + CR + ... + <Value of Token N>
<Edit control>: Control name
Name of the "Text token" edit control to use.
New in version 24
WINDEV

Getting the value stored in a "Text token" edit control Hide the details

<Stored value> = <Edit control>.StoredValue
<Stored value>: Character string
Stored value. If the control has several tokens, this parameter will have the following syntax:
<Value of Token 1> + CR + ... + <Value of Token N>
<Edit control>: Control name
Name of the "Text token" edit control to use.
WINDEV

Getting the value stored in a "Text token" edit control Hide the details

<Stored value> = <Edit control>.StoredValue
<Stored value>: Character string
Stored value. If the control has several tokens, this parameter will have the following syntax:
<Value of Token 1> + CR + ... + <Value of Token N>
<Edit control>: Control name
Name of the "Text token" edit control to use.
Versions 27 and later

Getting the stored value of a row of a Table control Hide the details

<Stored value> = <Table control>[<Row index>].StoredValue
<Stored value>: Character string
Stored value for the row.
<Table control>: Control name
Name of the Table control to be used.
<Row index>: Integer
Index of the row whose value is requested.
New in version 27

Getting the stored value of a row of a Table control Hide the details

<Stored value> = <Table control>[<Row index>].StoredValue
<Stored value>: Character string
Stored value for the row.
<Table control>: Control name
Name of the Table control to be used.
<Row index>: Integer
Index of the row whose value is requested.

Getting the stored value of a row of a Table control Hide the details

<Stored value> = <Table control>[<Row index>].StoredValue
<Stored value>: Character string
Stored value for the row.
<Table control>: Control name
Name of the Table control to be used.
<Row index>: Integer
Index of the row whose value is requested.
Remarks

Limitations

The StoredValue property applies only to:
  • List Box, ListView and Combo Box controls.
  • Versions 24 and later
    WINDEV "Text token" edit controls.
    New in version 24
    WINDEV "Text token" edit controls.
    WINDEV "Text token" edit controls.
  • Versions 27 and later
    the Table controls.
    New in version 27
    the Table controls.
    the Table controls.
AndroidJava The StoredValue property applies only to List Box and Combo Box controls.
Versions 16 and later
PHP The StoredValue property applies only to the following elements:
  • Combo Box controls and rows of Combo Box controls.
  • ListView controls and rows of ListView controls.
  • Group of controls.
New in version 16
PHP The StoredValue property applies only to the following elements:
  • Combo Box controls and rows of Combo Box controls.
  • ListView controls and rows of ListView controls.
  • Group of controls.
PHP The StoredValue property applies only to the following elements:
  • Combo Box controls and rows of Combo Box controls.
  • ListView controls and rows of ListView controls.
  • Group of controls.
Versions 17 and later
iPhone/iPad The StoredValue property applies only to List Box controls.
New in version 17
iPhone/iPad The StoredValue property applies only to List Box controls.
iPhone/iPad The StoredValue property applies only to List Box controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment