ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rating control
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to handle Rating controls programmatically. To do so, use the variable of the Rating control in the code.
The variable of the 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> = <Rating control>
<Rating> is an integer or real variable, according to the granularity defined for the ratings in the description window of the control.
Remarks:
  • You can also use the Value property.
Modifying the rating displayed in the control
To modify the rating, use the following syntax:
<Rating control> = <Rating>
<Rating> is a value between the minimum and maximum rating of the Rating control. These values have been defined in the control description window or in the code with the MinValue and MaxValue properties.
Remarks:
  • You can also use the Value property.
Properties specific to the management of rating
The following properties can be used to programmatically handle Rating controls.
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 particularly useful for Rating controls with a "Like/Dislike" feature.
Like Rating Control
ValuePerStarUsed to find out and modify the value of a star in a Rating control.

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

Last update: 01/23/2023

Send a report | Local help