PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Retrieving the rating displayed in the control
  • Modifying the rating displayed in the control
  • Properties specific to the management of rating
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
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to handle a Rating control by programming. To do so, use the variable of the Rating control in the code.
The variable of Rating control:
  • corresponds to the name of the Rating control.
  • is initialized with the rating displayed by the Rating control.
Retrieving the rating displayed in the control
To retrieve the rating, use the following syntax:
<Rating> = <Name of Rating control>
<Rating> is an integer or real variable, according to the granularity defined for the ratings in the description window of the control.
Notes:
  • You also have the ability to use ..Value.
  • Versions 21 and later
    WINDEV The <Rating> takes into account the specified value per star (in the control description or by ..ValuePerStar).
    New in version 21
    WINDEV The <Rating> takes into account the specified value per star (in the control description or by ..ValuePerStar).
    WINDEV The <Rating> takes into account the specified value per star (in the control description or by ..ValuePerStar).
Modifying the rating displayed in the control
To modify the rating, use the following syntax:
<Name of Rating control> = <Rating>
<Rating> is a value found between the minimum rating and the maximum rating of the Rating control. These values have been described in the description window of the control or by programming with ..MinValue and ..MaxValue.
Notes:
  • You also have the ability to use ..Value.
  • Versions 21 and later
    WINDEV Caution: if a value per star is specified (in the control description or by ..ValuePerStar), the <Rating> must take this value into account (value of a star multiplied by the number of displayed stars).
    New in version 21
    WINDEV Caution: if a value per star is specified (in the control description or by ..ValuePerStar), the <Rating> must take this value into account (value of a star multiplied by the number of displayed stars).
    WINDEV Caution: if a value per star is specified (in the control description or by ..ValuePerStar), the <Rating> must take this value into account (value of a star multiplied by the number of displayed stars).
Properties specific to the management of rating
The following properties are used to manage the characteristics of a Rating control by programming.
MaxValueUsed to find out and modify the maximum value of a Rating control.
MinValueUsed to find out and modify the minimum value of a Rating control. This property is mainly used for the Rating controls used to express "Like/Dislike" opinions for example.
Like Rating Control
Versions 21 and later
ValuePerStar
New in version 21
ValuePerStar
ValuePerStar
Used to find out and modify the value of a star in a Rating control.

To find out the entire list of WLanguage properties that can be used with a Rating control, see Properties associated with the Rating control.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment