ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The ValuePerStar property gets and sets the value of a star in a Rating control.
Note: This property corresponds to the "Value of a 'star'" option available in the "General" tab of the Rating control description window..
Example
// Pour utiliser des valeurs de 0 à 100 dans NOTE_Notation1

// Le champ affiche de 0 à 5 étoiles
NOTE_Notation1.BorneMax = 5 
// Chaque étoile a pour valeur 20
NOTE_Notation1.ValeurParEtoile = 20 
// Les valeurs affichées dans le champ vont de 0 à 100 (5 * 20)
Syntax

Getting the value of a star in a Rating control Hide the details

<Result> = <Rating control>.ValuePerStar
<Result>: Real
Value associated with a star.
<Rating control>: Control name
Name of the Rating control to use.

Changing the value of a star in a Rating control Hide the details

<Rating control>.ValuePerStar = <New value>
<Rating control>: Control name
Name of the Rating control to use.
<New value>: Real
New value associated with a star (or with any other graphic logo used in the Rating control). This value must be greater than 0. Otherwise, this value is ignored.
Remarks
  • By default, the value of a star (or any other logo) in the Rating control is set to 1.
  • The Value property of the Rating control corresponds to the number of stars multiplied by the value of the ValuePerStar property.
  • The maximum number of stars in a Rating control is returned by the MaxValue property.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help