PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Value displayed in an edit control
  • Value displayed in an HTML 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
DisplayedValue (Property)
In french: ValeurAffichée
..DisplayedValue is used to find out the value currently displayed on the screen in a window control or in a page control.
Versions 16 and later
PHP This property is now available for the PHP sites.
New in version 16
PHP This property is now available for the PHP sites.
PHP This property is now available for the PHP sites.
Versions 23 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 23
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
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 name>..DisplayedValue
<Displayed value>: Character string
Value currently displayed on the screen in the specified control.
<Control name>: Character string (with or without quotes)
Name of control to use.
Remarks

Value displayed in an edit control

..DisplayedValue returns the formatted string with its input mask.
WEBDEV - Server codeAjax

Value displayed in an HTML control

..DisplayedValue returns the HTML code found between the <BODY> and </BODY> tags.
Notes:

    Value displayed in a Combo Box control

    ..DisplayedValue 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
    Note: using the gImage and gLink functions
    To retrieve the content added by gImage and gLink, use ..InitialValue. For example, if the following code is used to add an element:
    ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
     gLink("Customer.CustomerName" + i))
    the following code is used to read the initial string again:
    COMBO_Combo1[1]..InitialValue
    New in version 22
    Note: using the gImage and gLink functions
    To retrieve the content added by gImage and gLink, use ..InitialValue. For example, if the following code is used to add an element:
    ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
     gLink("Customer.CustomerName" + i))
    the following code is used to read the initial string again:
    COMBO_Combo1[1]..InitialValue
    Note: using the gImage and gLink functions
    To retrieve the content added by gImage and gLink, use ..InitialValue. For example, if the following code is used to add an element:
    ListAdd(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
     gLink("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

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

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

    Value displayed in a row of a Table control

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

    Value displayed in a column of a Table control

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

    Limit

    ..DisplayedValue only applies 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,
    • WEBDEV - Server code HTML controls.
    • Versions 16 and later
      WEBDEV - Server code Image controls.
      New in version 16
      WEBDEV - Server code Image controls.
      WEBDEV - Server code Image controls.
    • Versions 16 and later
      WEBDEV - Server code Clickable Image controls.
      New in version 16
      WEBDEV - Server code Clickable Image controls.
      WEBDEV - Server code Clickable Image controls.
    • Versions 16 and later
      WEBDEV - Server code Thumbnail controls.
      New in version 16
      WEBDEV - Server code Thumbnail controls.
      WEBDEV - Server code Thumbnail controls.
    WEBDEV - Browser code In browser code, ..DisplayedValue only applies to the following elements:
    • Edit control.
    • Formatted display control.
    Versions 16 and later
    PHP In PHP, ..DisplayedValue only applies to the following elements:
    • Edit control.
    • Formatted display control.
    • iFrame control.
    • Image control
    • Clickable Image control.
    • Thumbnail control.
    • Row in a Table control.
    • Cell control.
    • Menu.
    • Group of controls.
    • Combo Box control and rows of Combo Box controls.
    • List Box and rows of List Box controls.
    New in version 16
    PHP In PHP, ..DisplayedValue only applies to the following elements:
    • Edit control.
    • Formatted display control.
    • iFrame control.
    • Image control
    • Clickable Image control.
    • Thumbnail control.
    • Row in a Table control.
    • Cell control.
    • Menu.
    • Group of controls.
    • Combo Box control and rows of Combo Box controls.
    • List Box and rows of List Box controls.
    PHP In PHP, ..DisplayedValue only applies to the following elements:
    • Edit control.
    • Formatted display control.
    • iFrame control.
    • Image control
    • Clickable Image control.
    • Thumbnail control.
    • Row in a Table control.
    • Cell control.
    • Menu.
    • Group of controls.
    • Combo Box control and rows of Combo Box controls.
    • List Box and rows of List Box controls.
    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment