Init (initialize the QueryClass object)

Top  Previous  Next

 

Init(queryvisual [,inimanager,family,errormanager] )

Init

The Init method initializes the QueryClass object.

queryvisual

The label of the query's QueryVisual object.

inimanager

The label of the query's INIManager object.

family

A string constant, variable, EQUATE, or expression that specifies the name to use for storing queries. By default this is the name of the procedure.

errormanager

The label of the query's ErrorManager object

Implementation:

The Init method allocates a new queryable items queue.

Example:

ThisWindow.Init PROCEDURE()

ReturnValue BYTE,AUTO

 CODE

!other initialization code

 Query.Init(QueryWindow)

 Query.AddItem('UPPER(CLI:LastName)','Name','s20')

 Query.AddItem('CLI:ZIP+1','ZIP+1','')

 RETURN ReturnValue

 ThisWindow.Kill PROCEDURE()

 ReturnValue BYTE,AUTO

 CODE

!other termination code

 Query.Kill

 RETURN ReturnValue

See Also:     Kill