diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-09-22 14:52:12 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-09-22 14:52:12 +0000 |
commit | 4766f99a0cc9b40b5aef35323265e0d238a76b4b (patch) | |
tree | 65d62888d371bc047ec72b95dfd69df31b3442b3 | |
parent | 28eac27a67f7d42a9b3987bc84718bd84f4ab619 (diff) | |
download | fpGUI-4766f99a0cc9b40b5aef35323265e0d238a76b4b.tar.xz |
minor fix in tiopf demo 08.
-rw-r--r-- | extras/tiopf/demos/Demo_08_Collection/frm_main.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/tiopf/demos/Demo_08_Collection/frm_main.pas b/extras/tiopf/demos/Demo_08_Collection/frm_main.pas index 9db19cc1..cb269a6b 100644 --- a/extras/tiopf/demos/Demo_08_Collection/frm_main.pas +++ b/extras/tiopf/demos/Demo_08_Collection/frm_main.pas @@ -71,6 +71,7 @@ procedure TMainForm.MainFormShow(Sender: TObject); begin Log('Creating mediators'); CreateMediators; + // Drop and re-create to be sure we start with the correct structure Log('Testing if table exists'); if TableExists then @@ -169,8 +170,10 @@ end; procedure TMainForm.btnReadClick(Sender: TObject); begin + FMediator.Active := False; FClients.Clear; FClients.Read; + FMediator.Active := True; end; procedure TMainForm.btnShowClick(Sender: TObject); |