<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloEnv > TApolloEnv Properties > ApplyTo |
Declaration
property ApplyTo: TApolloApplyTo;
type
TApolloApplyType = (atLocal, atServer);
TApolloApplyTo = set of TApolloApplyType;
Description
Determines if environmental settings should be applied to local (atLocal) and/or remote (atServer) tables. The default is local (atLocal) only. If your application is not using local tables at all, and is only using remote tables through Apollo Database Server, atLocal should be set to False and atServer should be set to True. If your application uses both local tables as well as remote tables, both atLocal and atServer should be set to True.
If you are using Apollo Database Server and, if your application is not using local tables at all (i.e. does not have the Apollo DLLs installed on the local client machine), and if you fail to set this properly to have atLocal as False, your application will raise a run-time error attempting to load the Apollo DLLs on the local (client) machine.
Delphi Example
// To programmatically set for Local table control only
ApolloEnv1.ApplyTo := [atLocal];
// To programmatically set for Server table control only
ApolloEnv1.ApplyTo := [atServer];
// To programmatically set for both Local and Server table control
ApolloEnv1.ApplyTo := [atLocal,atServer];