PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Value displayed in an edit control
  • Value displayed in an HTML Display control
  • Value displayed in a Combo Box control
  • Value displayed in a List Box control
  • Value displayed in a column of a Table control
  • Value displayed in a row of a Table control
  • Value displayed in a column of a Table control
  • Limit
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
DisplayedValue (Property)
In french: ValeurAffichée
The DisplayedValue property returns the value currently displayed in the control of a window or page.
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 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 20 and later
AndroidiPhone/iPad This property is now available for table columns in Android and iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for table columns in Android and iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for table columns in Android and 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
// Find out the value displayed on the screen in the "Date" control
EDT_Date = 18031972
Trace(EDT_Date.DisplayedValue) // Displays "18/03/1972"
Syntax
<Displayed value> = <Control used>.DisplayedValue
<Displayed value>: Character string
Value currently displayed on the screen in the specified control.
<Control used>: Control name
Name of the control to be used.
Remarks

Value displayed in an edit control

The DisplayedValue returns the formatted string with its input mask.
Universal Windows 10 AppAndroidiPhone/iPad

Value displayed in an HTML Display control

The DisplayedValue property returns the HTML code contained between the <BODY> and </BODY> tags.
Remarks:
  • Universal Windows 10 App The DisplayedValue property has no effect on HTML Display controls: this property does not return anything.
  • AndroidiPhone/iPad This property is not available for HTML Display controls. The result corresponds to an empty string.

Value displayed in a Combo Box control

The DisplayedValue property returns the formatted string displayed:
  • in the edit control if the Combo Box control is editable,
  • in the current row if the Combo Box control is not editable.
Versions 22 and later
Remark: Use of gImage and gStoredValue
To retrieve the content added with the gImage and gStoredValue functions, use the InitialValue property.
For example, if the following code is used to add an element:
ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
 StoredValue("Customer.CustomerName" + i))
the following code is used to read the initial string again:
COMBO_Combo1[1].InitialValue
New in version 22
Remark: Use of gImage and gStoredValue
To retrieve the content added with the gImage and gStoredValue functions, use the InitialValue property.
For example, if the following code is used to add an element:
ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
 StoredValue("Customer.CustomerName" + i))
the following code is used to read the initial string again:
COMBO_Combo1[1].InitialValue
Remark: Use of gImage and gStoredValue
To retrieve the content added with the gImage and gStoredValue functions, use the InitialValue property.
For example, if the following code is used to add an element:
ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
 StoredValue("Customer.CustomerName" + i))
the following code is used to read the initial string again:
COMBO_Combo1[1].InitialValue

Value displayed in a List Box control

The DisplayedValue property returns:
  • the formatted string displayed in the specified row if a row number is specified,
  • the formatted string displayed in the current row if no row number is specified.

Value displayed in a column of a Table control

The DisplayedValue property returns the formatted string displayed in the cell corresponding to the specified column and the current row.

Value displayed in a row of a Table control

The DisplayedValue property returns the formatted string displayed in the cell corresponding to the specified column and the specified row.

Value displayed in a column of a Table control

The DisplayedValue property returns the values of each column of the specified row separated by TAB.
Remark: The DisplayedValue property does not return the value of invisible columns.

Limit

The DisplayedValue property applies only to:
  • Edit controls,
  • Combo Box controls,
  • List Box controls and rows in a List Box control,
  • Columns and rows in a Table control,
  • Rows in a Table control,
  • Versions 15 and later
    Static controls,
    New in version 15
    Static controls,
    Static controls,
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment