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.
  • 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 a Rating control through 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:
<Note> = <Nom champ Notation>
<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:
<Nom champ Notation> = <Note>
<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 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.

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