Active

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloQuery > TApolloQuery Properties >

Active

Declaration

property Active: Boolean;

Description

Sends the expression in the SQL property to the server to be executed and returns a result set. Setting this to True is the same as calling the Open method. Setting this to False is the same as calling the Close method.

Delphi Example

ApolloQuery1.SQL.Text := 'SELECT First, Last, Age FROM Test WHERE (Age > 50)';

ApolloQuery1.Active := True;

C++Builder Example

ApolloQuery1->SQL->Text = "SELECT First, Last, Age FROM Test WHERE (Age > 50)";

ApolloQuery1->Active = TRUE;

See Also

OpenOpen, ExecSQLExecSQL, Apollo SQL Overview!JumpID(`APOLLOSQL.HLP',`ApolloSQL_Overview')