Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

LoadObjects


The LoadObjects method is used to start the COM Data Server object, and returns a reference to the Application object. This method must be the first call to the COM Data Server.

Syntax

Application.LoadObjects(pathName\CFGfileName)

Argument
Description
pathName
Directory path to the configuration (CFG) file.
CFGfileName
Name of the CFG file to open.

Returns

The Application object opened on start-up

Usage

Prior to calling LoadObjects, you must change the current directory to the Siebel\bin directory.

Used With

COM Data Server

Example

Here is a COM Data Server example.

Private Sub LoadConfig_Click()
   Dim errCode As Integer
   LoadConfig.Enabled = False
   SiebelApplication.LoadObjects "C:\siebel\bin\uagent.cfg", _
      errCode

   If errCode = 0 Then
      ConfigOK = 1
   End If

   Status.Text = SiebelApplication.GetLastErrText

End Sub


 Siebel Object Interfaces Reference 
 Published: 18 June 2003