Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Object ClassObject is a class that provides access to COM automation objects. SyntaxReturnsUsageTo create a new object, first dimension a variable, using the Dim statement, then set the variable to the return value of CreateObject or GetObject, as follows:
To refer to a method or property of the newly created object, use the syntax objectvar.property or objectvar.method, as follows: ExampleThis example uses the special Siebel object class BusComp to declare the variables used for accessing the Account Contacts view within the Siebel application. Sub Button1_Click ' BusObject returns the business object associated with a set oBC = me.BusObject.GetBusComp("Contact") i = oBC.FirstRecord ' returns 0 if fails, 1 if succeeds See AlsoCreateObject Function |
Siebel VB Language Reference |