Navigation:  ABC Library Reference > StepLongClass > StepLongClass Methods >====== GetPercentile (return a value's percentile:StepLongClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

GetPercentile( value ), VIRTUAL

blk2blue.jpg

GetPercentile Returns the specified value's percentile relative to the StepLongClass object's boundaries.
value A constant, variable, EQUATE, or expression that specifies the value for which to calculate the percentile.

The GetPercentile method returns the specified value's percentile relative to the StepLongClass object's upper and lower boundaries. For example, if the bounds are 0 and 1000 then GetPercentile(750) returns 75.

Implementation:

The SetLimit method sets the StepLongClass object's upper and lower boundaries.

Return Data Type:     BYTE

Example:

IF FIELD() = ?Locator                  !focus on locator field

 IF EVENT() = EVENT:Accepted           !if accepted

  MyBrowse.TakeAcceptedLocator         !BrowseClass handles it

  ?MyList{PROP:VScrollPos}=MyStep.GetPercentile(Locator) !position thumb to match

 END

END

See Also:     SetLimit