Navigation:  DAO Object Classes > DaoAbstract >

DaoAbstract:Init() Method

Previous pageReturn to chapter overviewNext page

Purpose

Initialize DAO Objects

 

Parameters

pInterface        Interface Pointer. See Note 1

pGuid        pointer to GUID of underlying COM Object See Note 2

bAddRef        Is an Addref() needed ?

 

Returns

Self        The Initialized object

 

Description

You usually don't instantiate a DAO Object directly. The only objects that can be created independently are:

DbEngine
Field
Group
Index
QueryDef
Relation
TableDef
User

To create a new object of these classes, you call init without the pInterface parameter:

 

  oField := DaoField{}

 

All other objects are returned by methods or accesses derived from the DbEngine object.

 

Note 1

pInterface may be one of the following

Pointer variable
DaoAbstract Object.
OleAutoObject
VOCOM IDispatch_ Object
VO IUnknown object

 

Class

DaoAbstract

 

 

See Also

DaoAbstract:Axit()

DaoAbstract:Destroy()