void __fastcall Offline();
Sets the connection to offline mode.
After the call, the dataset continues to work as an in-memory dataset and you can perform with the dataset any client operation that does not require a DBMS, such as browsing. When an application in offline mode tries to perform any operation that requires communication with the DBMS, the following happen:
- When ResourceOptions.AutoConnect is True, then the Online method is called, trying to establish a connection to the DBMS.
- When ResourceOptions.AutoConnect is False, then an exception is raised.
To bring the connection and associated datasets to the online state, call the Online method.
FDConnection1.Offline; lblState.Caption := '<not connected>';