Close (close the view)

Top  Previous  Next

 

Close ( <force> ), VIRTUAL

The Close method closes the managed VIEW.

Normally, a VIEW is closed by the Close method, providing that it was opened with the Open method. The force flag is used to close a VIEW that was not originally opened by the ViewManagers’s Open method.

Example:

MyView.AddSortOrder(ORD:ByCustomer)                       !sort by customer no

MyView.AddRange(ORD:CustNo,Relate:Orders,Relate:Customer) !range limit by parent file

MyView.Open                                               !open the view

!program code

MyView.Close                                              !close the view

 

See Also:     Open