Navigation: Ultimate Suite for PowerBuilder Help > PowerRating > Functions >

of_setcurrentvalue

Send comments on this topic.

 

Description:

Sets the star rating. This value can be a whole number or decimal value. Stars will fill depending on the value passed in relation to the MaxValue.

Syntax:

of_setcurrentvalue (double ad_value)

Argument

Description

ad_value

The star rating value. This value is relative to the MaxValue parameter. If MaxValue is 5, then CurrentValue can be any value between 0.0 and 5.

Return Value:

Always returns 1.

Usage:

You can allow your users to set the rating star value using the mouse. Handle this in with the AllowSelectWithMouse property and optionally the WholeNumberSelection property.

 


Copyright © 2021 Werysoft Inc.