RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.HasAppServer Property

Indicates whether the client dataset is connected to a provider.

Pascal
property HasAppServer: Boolean;
C++
__property Boolean HasAppServer;

Read HasAppServer to determine whether the client dataset gets its data from an IAppServer interface. When HasAppServer is true, the client can interact with an internal provider, a local provider in the same process space, or a provider on a remote application server using the IAppServer interface. 

Use HasAppServer to check whether the client dataset is connected rather than reading the AppServer property. Reading AppServer causes the client dataset to establish a connection and obtain an IAppServer interface if it does not already have one. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!