Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > COM Methods > Create COM Object MethodThe Create COM Object method creates a new COM object. It does not return a value. FormatCreateObject(application.objectname) The following table describes the arguments that you can use with this method. UsageTo create an object, you use the Dim statement to declare an object variable, and then set the variable equal to the new object. For example:
You can use one of the following formats to reference a method or property of the object: objectvar.property
You cannot display a modal or nonmodal form from a server application. A DLL that this method instantiates must be thread-safe. To identify correct application and object names, see the documentation for your Web Client Automation Server application. CAUTION: If a method passes the wrong number, order, or type of arguments to a COM object when it calls a COM object, then a 440 error message might occur. Example 1The following example uses the Create COM Object method to create a Microsoft Excel worksheet. It then edits and saves this worksheet: Sub BtnExcel_Click ' Make Excel visible through the Application object. Example 2The following example uses the Create COM Object method to create a Microsoft Word document. It then edits and saves this document: Sub BtnWrd_Click |
Siebel VB Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |