CTasks
The CTasks class is a list or result set of CTask objects.
Methods
CTasks()
Constructs an empty CTasks object.
void BeginTransaction()
This method will issue a begin transaction statement to the database on the current connection.
bool CloseAll()
This method will close all objects in the CTasks list. Return value is the status of the operation.
void CommitTransaction()
This method will issue a commit to the database for the current connection.
long GetTaskCount()
This method will return the count of CTask objects in the list.
LPDISPATCH Item(long Index)
This method will return the CTask object dentified in the list by Index. When using C++, this method returns an LPDISPATCH pointer.
LPDISPATCH New(long TaskTemplateNo)
This method will return a newly created CTask object loaded with the task template data defined in task template specified by parameter TaskTemplateNo. When using C++, this method returns an LPDISPATCH pointer.
LPDISPATCH Open(long TaskRefno)
This method will read the task referenced by TaskRefno from the database and load into the CTasks list. The return value is the CTask object. When using C++, this method returns an LPDISPATCH pointer.
void RollbackTransaction()
This method will issue a rollback to the database on the current connection.
void SetConnection(LPUNKNOWN dbconnection, LPUNKNOWN dbase)
This method is used to the set the connection by passing references of the database and connection to the CTasks object.
Members
No public members in this class.