ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
  • Value of Static Text control
  • Value of Calculated control in a report
  • Value of Bar Code control
  • Value of Image control
  • Value of Static Text control or preset control found in a report
  • Value of RTF control
  • Value of Check Box control or value of option in a Check Box control
  • Value of Chart control
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Value property is used 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.
  • Get the value associated with a value of a variable of type Enumeration.
Remark: The Value property is rarely used and can be replaced by an equivalent syntax (see Remarks).
Example
// Modifier le fichier image associé au champ Image "IMG_Image"
IMG_Image.Valeur = "C:\MesImages\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 the element to be used.

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
Reports and Queries

Value of Static Text control

The Value property is used to retrieve or modify the text of a Static Text control.
<Result> is a character string.
To retrieve the text of a Static Text control, the following syntaxes are equivalent:
ResLibellé = <Champ Libellé>.Valeur
ResLibellé = <Champ Libellé>
ResLibellé = <Champ Libellé>.Libellé
Reports and Queries

Value of Calculated control in a report

The Value property is used to retrieve or modify the value of a Calculated control in a 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:
ResValeur = <Champ Calculé>.Valeur

ResValeur = <Champ Calculé>
Reports and Queries

Value of Bar Code control

The Value property is used to retrieve or modify the value of a 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:
ResValeur = <Champ Code-barres>.Valeur

ResValeur = <Champ Code-barres>
Reports and Queries

Value of Image control

The Value property is used to identify or modify the image file associated with an Image control.
<Result> is a character string containing the path of the image file.
To identify the image file associated with an Image control, use one of the following syntaxes:
ResImage = <Champ Image>.Valeur

ResImage = <Champ Image>
Reports and Queries

Value of Static Text control or preset control found in a report

The Value property is used to identify or modify the content of the control.
In an assignment, the type of the value passed to the Value property depends on the type of the item associated with the control.
If the item is numeric, you must assign a number to it and make sure you use the right input mask (InputMask property).
A date must be assigned to a Date control.
Reports and Queries

Value of RTF control

The Value property is used to retrieve or modify the content of an RTF control. This content is composed of RTF-specific characters.
<Result> is a character string.
To retrieve the content of an RTF control, use one of the following syntaxes:
ResRTF = <Champ RTF>.Valeur

ResRTF = <Champ RTF>

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

The Value property is used 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
<Résultat> 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:
ResCoché = <Champ Interrupteur>[<Numéro de l'option>].Valeur

ResCoché = <Champ Interrupteur>[<Numéro de l'option>]

ResCoché = <Nom de l'option>.Valeur

ResCoché = <Nom de l'option>
Note: If the <Option number> parameter is not specified, the first option is selected by default.
Reports and Queries

Value of Chart control

The Value property can only be used to get the name of a Chart control.
<Result> is a character string.
To find out the name of a Chart control, use one of the following syntaxes:
Res_NomGraphe = <Champ Graphe>.Valeur

Res_NomGraphe = <Champ Graphe>

Limitations

Reports and Queries In a report, the Value property 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.
  • a Signature control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help