GetTreePromptCount method: Query class
Syntax
GetTreePromptCount()
Description
Use the GetTreePromptCount method to get the number of tree prompts if available in the query.
Parameters
None.
Returns
A number that indicates the count of tree prompts used in the query. -1 in case of an error.
Example
In this example, the ExecQry step of the PSQUERY Application Engine program invokes the GetTreePromptCount() method using a value stored in the run control table prior to executing the query.
&aQry = %Session.GetQuery();
If &aQry.Open(PSQUERY_AET.QRYNAME, &bPublic, False) = 0 Then
&nTreePromptCount = &aQry.GetTreePromptCount();
End-if;