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 Check Box control or value of option in a Check Box control
  • Value of Chart 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.
  • 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.
Remark: The Property Value is rarely used and can be replaced by an equivalent syntax (see Remarks).
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
Reports and Queries

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

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

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

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

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

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>

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

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>

Limits

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