Method XbpScrollBar():setData() Foundation

Sets the current position of the scroll box.

Syntax
:setData( [<nScrlPos>] ) --> lSuccess
Parameters
<nScrlPos>
<nScrlPos> is an optional numeric value specifying the new position of the scroll box. If no data code block is contained in the instance variable :dataLink, <nScrlPos> is required.
Return

This method returns the value .T. (true) when the position could be set, otherwise .F. (false) is returned.

Description

The :setData() method sets the position of the scroll box within the scroll bar. If a code block is contained in the instance variable :dataLink, it is executed without parameters and the return value of the code block determines the position of the scroll box. The code block in :dataLink is not executed if a value is explicitly specified for the <nScrlPos> parameter when the method :setData() is called.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.