Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Using Siebel VB > About Object HandlingAn object is a reusable block of code. You can write code that instantiates an object or that does something. Each software application includes a set of properties and methods that modify the characteristics of an object. A property affects how an object behaves. For example:
A method causes an application to perform an action on an object. For example: You can write Siebel VB that accesses a Siebel object and that modifies the properties and methods of this object. To access an object that is part of the Siebel application, you can run Siebel VB code that is external to the Siebel application. To use a non-Siebel object in Siebel VB code, you must first assign it to an object variable. Assigning it instantiates it. To manipulate the object, you then reference the object name with or without properties and methods. Example of Declaring an Object As a Siebel CRM Object TypeFigure 1 includes an example that configures Siebel VB to access a Siebel object. You can declare an object as a Siebel CRM object type. Explanation of CalloutsTo declare an object as a Siebel CRM object type, you do the following work:
You can use similar code to access other types of objects that are compliant with COM. You can use the software application that creates the object to modify properties and methods of the objects. For an example, see Date and Time Methods. Creating an Object Variable to Access an ObjectThe Declare Variable statement creates an object variable named
For more information, see the following topics: Using Methods and Properties to Manipulate an ObjectYou can use the following format to access an object, property, or method: appvariable.object.property For example, the GetPickListBusComp method of the BusComp object of the Siebel application is assigned to the oBC object variable. It returns the following value: |
Siebel VB Language Reference | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |