The OBJECT SET SCROLLBAR command allows you to display or hide the horizontal and/or vertical scrollbars in the object set using the object and * parameters.
If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you do not pass a string, but a variable reference. For more information about object names, refer to the Object Properties section.
This command is used with the following form objects:
- list boxes,
- scrollable areas,
- hierachical lists,
- subforms.
Pass the Boolean values in horizontal and vertical indicating whether the corresponding scrollbars should be displayed (True) or hidden (False). The scrollbars are displayed by default.
Note: Objects of the scrollable area type do not have horizontal scrollbars. Since the horizontal parameter is mandatory, you must still pass it in this case; however, it will be ignored.