GetPercentile (return a value's percentile:StepCustomClass)


Top  Previous  Next

 

GetPercentile( value ), VIRTUAL

GetPercentile

Returns the specified value's percentile relative to the StepCustomClass 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 StepCustomClass object's "steps."

Implementation:

The AddItem method sets the StepCustomClass object's steps.

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:     AddItem