<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties > Scoped |
Declaration
property Scoped: WordBool;
Description
Sets or clears a Scope using the low and high range values set by the ScopeBegin and ScopeEnd properties.
// Display all records where LASTNAME starts with A through C
ApTbl.IndexName := 'LASTNAME';
ApTbl.ScopeBegin := 'A';
ApTbl.ScopeEnd := 'C';
ApTbl.Scoped := True;
// Display all records where AGE (a NUMERIC field) is from 25 to 35
ApTbl.IndexName := 'AGE';
ApTbl.ScopeBegin := IntToStr(25);
ApTbl.ScopeEnd := IntToStr(35);
ApTbl.Scoped := True;
// Display all records where LASTNAME starts with A through C
ApTbl->IndexName = "LASTNAME";
ApTbl->ScopeBegin = "A";
ApTbl->ScopeEnd = "C";
ApTbl->Scoped = TRUE;
// Display all records where AGE (a NUMERIC field) is from 25 to 35
ApTbl->IndexName = "AGE";
ApTbl->ScopeBegin = IntToStr(25);
ApTbl->ScopeEnd = IntToStr(35);
ApTbl->Scoped = TRUE;
See Also