PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Value of Static control
  • Value of Calculated control in a report
  • Value of Bar Code control
  • Value of Image control
  • Value of Static control or preset control found in a report
  • Value of RTF control
  • Value of window or page
  • Value of edit control
  • Value of Button control
  • Value of Check Box control or value of option in a Check Box control
  • Value of Radio Button control
  • Value of List Box, ListView or Table control
  • Value of cell in a Table control
  • Value of Combo Box control
  • Value of TreeView control or TreeView Table control
  • Value of a Progress Bar, Slider, Spin or Scrollbar control
  • Value of Tab control
  • Value of menu or menu option
  • Value of Chart control
  • Value of Rating control
  • Value of ActiveX control
  • Value of HTML control
  • Value of Multimedia control
  • Value of Map control
  • Limits
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
The Property Value allows to:
  • Find out and modify the value of a report control.
  • Find out and modify the value of a control or the title of a window.
  • Find out the identifier of a stream.
  • Find out and modify the value of a control or the title of a page.
  • Windows Mobile Find out and modify the multimedia file linked to a Multimedia control.
  • AndroidiPhone/iPad Center the map found in a Map control on a specific position.
  • Versions 18 and later
    Find out the value associated with a value of an Enumeration variable.
    New in version 18
    Find out the value associated with a value of an Enumeration variable.
    Find out the value associated with a value of an Enumeration variable.
  • Versions 23 and later
    AndroidiPhone/iPad Find out the identifier or the handle associated with a Native Container control.
    New in version 23
    AndroidiPhone/iPad Find out the identifier or the handle associated with a Native Container control.
    AndroidiPhone/iPad Find out the identifier or the handle associated with a Native Container control.
Remark: The Property Value is rarely used and can be replaced by an equivalent syntax (see Remarks).
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.
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
Android Widget This property is now available in Android Widget mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
Android Widget This property is now available in Android Widget mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
Android Widget This property is now available in Android Widget mode.
Versions 20 and later
AndroidiPhone/iPad This property is now available for Table controls and table columns in Android and iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for Table controls and table columns in Android and iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for Table controls and table columns in Android and iPhone/iPad applications.
Versions 21 and later
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Modify the image file associated with the "IMG_Image" control
IMG_Image.Value = "C:\MyImages\Image.BMP"
Syntax

Finding out the value of an element Hide the details

<Result> = <Element used>.Value
<Result>: Any type
This result depends on the element type.
<Element used>: Type of element
Name of element to use.

Modifying the value of an element Hide the details

<Element used>.Value = <New value>
<Element used>: Type of element
Name of element to use.
<New value>: Any type
New value for the specified element. This parameter depends on the type of specified element.
Remarks
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

Value of Static control

The Property Value allows to retrieve or modify the text of an Static control.
<Result> is a character string.
To retrieve the text of a Static control, the following syntaxes are equivalent:
0
ResLibel = <control Libellé>
0
iPhone/iPadUniversal Windows 10 AppWindows Mobile

Value of Calculated control in a report

The Property Value allows to retrieve or modify the value of a calculated field in an report.
The type of <Result> depends on the type of the Calculated control.
To retrieve the value of a Calculated control, use one of the following syntaxes:
0

ResValue = <Control Calculé>
Windows Mobile

Value of Bar Code control

The Property Value allows to retrieve or modify the value of an Bar Code control. The value of a Bar Code control corresponds to the character string represented in the bar code.
<Result> is a character string.
To retrieve the text of a Bar Code control, use one of the following syntaxes:
0

ResValue = <control Code-barres>
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

Value of Image control

The Property Value allows you to know or modify the image file associated with an Image control.
<Result> is a character string containing the path of the image file.
To find out the image file associated with an Image control, use one of the following syntaxes:
0

ResImage = <control Image>
iPhone/iPadUniversal Windows 10 AppWindows Mobile

Value of Static control or preset control found in a report

The Property Value allows you to know or modify the contents of the Control.
In assignment, the type of the value passed to the Property Value depends on the type of the Item associated to the control.
If the field is of the numeric type, it is necessary to assign a number to it while checking that the input mask is suitable (Property InputMask).
A date must be assigned to a Date control.
Windows Mobile

Value of RTF control

The Property Value makes it possible to retrieve or modify the content of an Control RTF. The value contains the special characters specific to the RTF format.
<Result> is a character string.
To retrieve the content of an RTF control, use one of the following syntaxes:
0

ResRTF = <Control RTF>
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

Value of window or page

The Property Value allows to retrieve or modify the title of a window or a page.
<Result> is a character string.
The Property Value is equivalent to the Property Title.
To find out the title of a window or the title of a page, use one of the following syntaxes:
ResTitle = <Name of window or page>.Value

ResTitle = <Name of window or page>

ResTitle = <Name of window or page>.Title
AndroidiPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

Value of edit control

The Property Value allows to retrieve or modify the value entered in an edit control.
<Result> has the following type:
  • character string if the sub-type of edit control corresponds to "Text", "Date" or "Time",
  • integer or real if the sub-type of the edit control corresponds to "Numeric",
  • numeric if the sub-type of the edit control corresponds to "Currency" or "Currency + Euro".
To find out the value typed in an edit control, use one of the following syntaxes:
0

ResValue = <control de saisie>
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

Value of Button control

The Property Value allows to retrieve or modify the text of an Button control.
If the Button control contains an image, only the text is returned. It is not possible to assign a drawing to a Button control.
<Result> is a character string.
The Property Value is equivalent to the Property Libellé.
To know the text of a Button control, use one of the following syntaxes:
0

ResButton = <Control Bouton>

0

Value of Check Box control or value of option in a Check Box control

The Property Value allows to:
  • Check or uncheck an option in a Check Box control.
  • Find out whether an option found in a Check Box control is checked or unchecked
<Result> is a boolean:
  • True if the option is checked,
  • False otherwise.
To find out whether an option found in a Check Box control is checked or not, use one of the following syntaxes:
0

0

ResChecked = <Option name>.Value

ResChecked = <Option name>
Remark: If <Option number> is not specified, the first option is selected by default.
AndroidiPhone/iPadUniversal Windows 10 AppWindows Mobile

Value of Radio Button control

The Property Value allows to:
  • Find out the active option in a Radio Button control.
  • Select an option.
<Result> is an integer.
To find out the active option in a Radio Button control, use one of the following syntaxes:
0

ResOption = <Control Sélecteur>
Remark: A Radio Button control is always positioned on a position (1 by default). To display a Radio Button control with no default option, all you have to do is assign -1 to the control value during its initialization:
// Initialize the value of "RADIO_Customer" with its initial value
RADIO_Customer.InitialValue = -1
AndroidiPhone/iPadUniversal Windows 10 AppWindows Mobile

Value of List Box, ListView or Table control

Two distinct cases may occur.
  • The List Box (ListView or Table) control is a memory control OR StoredItem corresponds to an empty string ("").
    The Property Value allows to:
    • Find out the selected row. If no row is selected, the Value property returns -1. If the control allows for multiselection, the number of the last selected row is returned.
      To find out the selected row, use one of the following syntaxes:
      ResRow = <Control name>.Value

      ResRow = <Control name>
    • Move the selection by specifying the number of the new row to select. The rows that were selected beforehand are deselected.
  • The List Box (ListView or Table) control is a browsing control AND StoredItem is not empty.
    0. If no row is selected, the Value property returns an Void string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>.Value

    ResStoredItem = <Control name>.StoredItem
AndroidiPhone/iPad ListView controls are not available.
Windows Mobile

Value of cell in a Table control

The Property Value allows to know or modify the value of a cell of an Table control.
<Result> is a character string.
To find out the value of a cell, use one of the following syntaxes:
0

0

0

0
Special case: Value of cell in the current row
If only the column name is specified, the Property Value allows:
  • Find out the value of the cell identified by the specified column and by the current row in the Table control. If there is no current row, an empty string ("") is returned.
  • Modify the value of the cell identified by the specified column and by the current row in the Table control.
<Result> is a character string.
To find out the value of the cell identified by the specified column and by the current row in the Table control, use one of the following syntaxes:
ResColumn = <Column name>.Value

ResColumn = <Column name>
AndroidWindows Mobile

Value of Combo Box control

Two distinct cases may occur.
  • The Combo Box control is editable AND StoredItem corresponds to an empty string ("").
    The Property Value allows to:
    • Find out the value of selected item. If no item is selected, the Property Value returns a string Void ("").
      To find out the value of the selected element, use one of the following syntaxes:
      0

      ResValue = <Control Combo Box>
    • Modify the value of the selected element.
  • The Combo Box is not editable OR StoredItem is not empty.
    The Property Value allows you to know the number of the selected item.
    To find out the number of the selected element, use one of the following syntaxes:
    0
    0
    ResElement = <Control Combo Box>
Versions 19 and later
Windows Mobile

Value of TreeView control or TreeView Table control

Two distinct cases may occur.
  • The control is memory control OR StoredItem corresponds to an empty string ("").
    The Property Value allows to:
    • Find out the selected row. If no row is selected, the Value property returns -1. If the control allows for multiselection, the number of the last selected row is returned.
      To find out the selected row, use one of the following syntaxes:
      ResRow = <Control name>.Value

      ResRow = <Control name>
    • Move the selection by specifying the number of the new row to select. The rows that were selected beforehand are deselected.
  • The control is a browsing control AND StoredItem is not empty.
    The Value property is used to find out which field is stored for the record associated with the selected row. If no row is selected, the Value property returns an Void string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>.Value

    ResStoredItem = <Control name>.StoredItem
New in version 19
Windows Mobile

Value of TreeView control or TreeView Table control

Two distinct cases may occur.
  • The control is memory control OR StoredItem corresponds to an empty string ("").
    The Property Value allows to:
    • Find out the selected row. If no row is selected, the Value property returns -1. If the control allows for multiselection, the number of the last selected row is returned.
      To find out the selected row, use one of the following syntaxes:
      ResRow = <Control name>.Value

      ResRow = <Control name>
    • Move the selection by specifying the number of the new row to select. The rows that were selected beforehand are deselected.
  • The control is a browsing control AND StoredItem is not empty.
    The Value property is used to find out which field is stored for the record associated with the selected row. If no row is selected, the Value property returns an Void string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>.Value

    ResStoredItem = <Control name>.StoredItem
Windows Mobile

Value of TreeView control or TreeView Table control

Two distinct cases may occur.
  • The control is memory control OR StoredItem corresponds to an empty string ("").
    The Property Value allows to:
    • Find out the selected row. If no row is selected, the Value property returns -1. If the control allows for multiselection, the number of the last selected row is returned.
      To find out the selected row, use one of the following syntaxes:
      ResRow = <Control name>.Value

      ResRow = <Control name>
    • Move the selection by specifying the number of the new row to select. The rows that were selected beforehand are deselected.
  • The control is a browsing control AND StoredItem is not empty.
    The Value property is used to find out which field is stored for the record associated with the selected row. If no row is selected, the Value property returns an Void string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>.Value

    ResStoredItem = <Control name>.StoredItem
Windows Mobile

Value of a Progress Bar, Slider, Spin or Scrollbar control

The Property Value allows to know or modify the value of an Progress Bar control, Potentiometer, Spin or Elevator.
<Result> is a real.
To find out the value of a Progress Bar, Slider, Spin or Scrollbar control, use one of the following syntaxes:
ResValue = <Control name>.Value

ResValue = <Control name>
Windows Mobile

Value of Tab control

The Property Value is used to find out the number of the Active tab or to activate an Tab control tab.
<Result> is an integer.
To find out the number of the active tab pane, use one of the following syntaxes:
0

ResVolet = <Control Onglet>
Windows Mobile

Value of menu or menu option

The Property Value allows you to know the associated number of the current menu or menu option.
Remark: The number associated with a menu or menu option is defined in the "General" tab of the description window of menu or menu option.
<Result> is an integer.
To find out the number associated with the menu or with the current menu option, use one of the following syntaxes:
ResMenu = <Name of menu or menu option>.Value

ResMenu = <Name of menu or menu option>
iPhone/iPadUniversal Windows 10 AppWindows Mobile

Value of Chart control

The Property Value only allows to know the name of an Chart control.
<Result> is a character string.
To find out the name of a Chart control, use one of the following syntaxes:
0

Res_NomGraph = <Control Graphe>
AndroidiPhone/iPad

Value of Rating control

The Property Value allows to initialize and to know the value of an Rating control.
This value corresponds to the number of "pictograms" displayed in the control.
Example:
RATE_Nation1.Value = 4.5
Windows Mobile

Value of ActiveX control

The Property Value allows to know the COM identifier (ProgId) of the manipulated ActiveX.
Universal Windows 10 App

Value of HTML control

The Property Value allows to know the Address associated with the HTML page displayed in the control. If the page:
  • is a page built in HTML directly, the value corresponds to "about:blank".
  • is a page from a site, the value corresponds to the address of the page (www.windev.com for example).
  • is an HTML file, the value corresponds to the address of the file.
Universal Windows 10 App The Property Value returns the URL of the site but cannot return the HTML code of the Control. This property cannot be used to associate a local htm file with the HTML control.
Windows Mobile

Value of Multimedia control

The Property Value allows to know the name of the multimedia file linked to a multimedia control. This property can also be used to modify the multimedia file linked to the control:
  • The file indicated by the Property Value is associated at Control, loaded and played (equivalent to the MultimediaPlay function).
  • If the value of the control is an empty string (""), the read operation is stopped and the file is unloaded from memory.
Versions 17 and later
AndroidiPhone/iPad

Value of Map control

The Property Value allows to center the card (present in an Map control) on the position corresponding to an Variable of type geoPosition.
Example:
// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition is geoPosition
 
MAP_Position.Value = MyPosition
Remarks:
  • The use of Property Value is equivalent to the function MapDisplayPosition. The only difference is: when using MapDisplayPosition, the positioning on the requested position is performed via an animation.
New in version 17
AndroidiPhone/iPad

Value of Map control

The Property Value allows to center the card (present in an Map control) on the position corresponding to an Variable of type geoPosition.
Example:
// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition is geoPosition
 
MAP_Position.Value = MyPosition
Remarks:
  • The use of Property Value is equivalent to the function MapDisplayPosition. The only difference is: when using MapDisplayPosition, the positioning on the requested position is performed via an animation.
AndroidiPhone/iPad

Value of Map control

The Property Value allows to center the card (present in an Map control) on the position corresponding to an Variable of type geoPosition.
Example:
// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition is geoPosition
 
MAP_Position.Value = MyPosition
Remarks:
  • The use of Property Value is equivalent to the function MapDisplayPosition. The only difference is: when using MapDisplayPosition, the positioning on the requested position is performed via an animation.

Limits

iPhone/iPadUniversal Windows 10 AppWindows Mobile For states, the Property Value cannot be used on:
  • a report.
  • a report block.
  • a Check Box control.
  • a Shape control.
  • an Organizer control.
  • a Scheduler control.
  • a Gantt Chart control.
  • Versions 21 and later
    a Signature control.
    New in version 21
    a Signature control.
    a Signature control.
WINDEV Mobile In a window, the Property Value cannot be used on:
  • an option in a radio button.
  • a tab pane.
  • a group of controls.
Android Widget The Property Value applies only to the following items:
  • Button control.
  • Static control.
  • Image control.
  • Window.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment