GetTopIndex Method (LISTVIEW)
9.0F, PLBCMP GUI Only
The GetTopIndex method retrieves the topmost visible item number for a LISTVIEW object when in a list or report view. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A LISTVIEW object that is accessed.
return
Optional. A Numeric Variable that returns the zero-based item value or a failure value.
Flags Affected: EOS, OVER, ZERO
Note the following:
Upon completion, {return} will contain a -1 value when there are no items for a LISTVIEW object.
The {return} value is always set to zero if the LISTVIEW is in the icon or small icon view.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain the item count, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
See Also: Method Syntax, LISTVIEW Methods
![]() |