The Views collection object has the following methods:
Views Collection Methods
Name |
Parameter |
Description |
Remove |
Long lWhat |
Removes a View object from the collection. |
RemoveAll |
Removes all View objects from the collection. | |
Add |
Object oWhat |
Adds a View to the collection. |
Insert |
Long lWhichItem Object oWhat |
Inserts a new View at a given position to the collection. |

Dim oTableView as Object REM SAP.TableView Object
Dim oTable as Object
oTable.Views.Add oTableView
oTable.Value (1,1) = "Testdata"
REM The String "Testdata" is automatically displayed in TableView
REM If the OTableView is an object which lies on a Visual Basic Form
REM the following code must be used
oTable.Views.Add oTableView.Object Rem access the dispatch interface of the TableView