Navigation: ABC Library Reference > ViewManager > ViewManager Methods >====== Init (initialize the ViewManager object) ====== | |
Init( view, primaryrelation [, order ] )
Init | Initializes the ViewManager object. |
view | The label of the managed VIEW. |
primaryrelation | The label of the RelationManager object for the view's primary file. |
order | A structure containing the sort, range limit, and filter information for the managed VIEW. If omitted, the Init method supplies an empty SortOrder structure that may be set up with AddSortOrder, AppendOrder, SetOrder, AddRange, and SetFilter methods. |
The Init method initializes the ViewManager object.
Implementation:
The Init method sets the values of the Order, PagesAhead, PagesBehind, PageSize, Primary, and View properties.
The order parameter allows derived classes, such as the BrowseClass, to add additional sort information to their underlying views.
By passing the Order property from another ViewManager object or the Sort property from a BrowseClass object as the order parameter, you can implement several objects with similar sorts, filters, and range limits.
Example:
MyView.Init(OrderView,Relate:Order) !initialize the ViewManager
MyView.Open !open the view
!program code
MyView.Close !close the view
MyView.Kill !shut down the ViewManager
See Also: Order, Primary, View, PagesAhead, PagesBehind, PageSize