PC SOFT

WINDEV的在线文档

  • Overview
  • Retrieving the rating displayed in the control
  • Modifying the rating displayed in the control
  • Properties specific to the management of a rating
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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.

Note: You also have the ability to use ..值.

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 ..最小界限 and ..最大界限.

Note: You also have the ability to use ..值.

Properties specific to the management of a rating
The following properties are used to manage the characteristics of a Rating control by programming.
最大界限Used to find out and modify the maximum value of a Rating control.
最小界限Used to find out and modify the minimum value of a Rating control. This property is useful for the Rating controls used to express "Like/Dislike" opinions for example.

Like 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.