TCDSTrkEnumQueries
Return to Introduction  Previous page  Next page
Enumerates through the list of Queries defined in the repository. This will include Temporary queries created during the session.

Delphi (TrkIntf.pas)

type  
  TEnumQueries = function ( Data: Pointer; Name: String; ID: Cardinal; Description, Statement: String; Temporary: Boolean; Shared: Boolean ): Boolean;  
 
function TrkEnumQueriesSv( Handle: Cardinal; EnumProc: TEnumQueries; Data: Pointer ): Integer;  
 
Parameters

Name
Description
Handle
A valid Handle used to identify the User.
EnumProc
The procedure (prototype TEnumQueries) that will be called for each query found.
Data
Pointer to additional information that can be passed to the EnumProc in the Data parameter.


Return Value

Err_OK if successful or an error code indicating the error.

Remarks

TEnumQueries is the prototype of the procedure that is called by TrkEnumQueriesSv. This function should return True to continue enumerating the queries, or False to terminate the enumeration. The Enumeration procedure receives the following parameters, describing each Query:

Name
Description
Data
The Data parameter as passed into the enumerator. Can be nil
Name
Name of the Query
ID
Unique ID used to identify the query
Description
Description of the query
Statement
String representing the criteria of the query
Temporary
True if this is a temporary query
Shared
True if this is a shared query



Exported

type  
  TIntEnumQueries = function ( Context, Data: Pointer; pName: PChar; ID: Cardinal; pDescription, pStatement: PChar; Temporary: Boolean; Shared: Boolean ): Boolean; stdcall;  
 
function TCDSTrkEnumQueries( Handle: Cardinal; Context, Data: Pointer; EnumProc: TIntEnumQueries ): Integer; stdcall;  


 


© 1995-2018 MCN Software