GetValue (return a percentile's value)

Top  Previous  Next

 

GetValue( percentile ), VIRTUAL

GetValue

Returns the specified percentile's value relative to the StepStringClass object's boundaries.

percentile

An integer constant, variable, EQUATE, or expression that specifies the percentile for which to retrieve the value.

The GetValue method returns the specified percentile's value relative to the StepStringClass object's upper and lower boundaries. For example, if the bounds are 'A' and 'Z' then GetValue(50) returns 'M'.

Implementation:

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

Return Data Type:     STRING

Example:

IF FIELD() = ?MyList                               !focus on browse list

 IF EVENT() = EVENT:ScrollDrag                     !if thumb moved

  Locator=MyStep.GetValue(?MyList{PROP:VScrollPos})!update locator to match

 END

END

See Also:     SetLimit