-
-
Save reinaldoacdc/aca5ebc481e6267ab856c2b7cf708a7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ClientDataSetHelper; | |
interface | |
uses DbClient; | |
type TClientDataSetHelper = class helper for TClientDataSet | |
procedure InitializeDataSet; | |
end; | |
implementation | |
procedure TClientDataSetHelper.InitializeDataSet; | |
begin | |
if Self.Active then | |
Self.EmptyDataSet | |
else | |
Self.CreateDataSet; | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment