getpercentile_return_a_value_s_percentile_.htm
Navigation: ABC Library Reference > StepStringClass > StepStringClass Methods >====== GetPercentile (return a value's percentile) ====== | |
GetPercentile( value ), VIRTUAL
GetPercentile | Returns the specified value's percentile relative to the StepStringClass object's boundaries. |
value | A string 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 StepStringClass object's upper and lower boundaries. For example, if the bounds are 'A' and 'Z' then GetPercentile('M') returns 50.
Implementation: The SetLimit method sets the StepStringClass 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
!position thumb to match:
?MyList{PROP:VScrollPos}=MyStep.GetPercentile(Locator)
END
END
See Also: SetLimit
getpercentile_return_a_value_s_percentile_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1