Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TDataSet Behaviour when Closed - connected fields in labels and edit still show data
Thu, Sep 23 2021 11:23 AMPermanent Link

Walter Matte

Tactical Business Corporation

Is this proper behaviour???

I load a dataset (Customer) with the Database.LoadRows - all is fine.

Database.LoadRows(Customer);


When  I do    Customer.Close;    - the Edit Boxes and Labels connected to the dataset still show the values even though the dataset is closed.


Walter
Fri, Sep 24 2021 4:38 PMPermanent Link

erickengelke

Walter Matte wrote:

>When  I do    Customer.Close;    - the Edit Boxes and Labels connected to the dataset still show the values even though the dataset is closed.

I think you might be looking for Customer.Empty.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Sat, Sep 25 2021 6:38 AMPermanent Link

Walter Matte

Tactical Business Corporation

Thank Erick, I found that but still think that if the Dataset is closed linked objects (edits, labels, grids) should not be presenting data.....  but if that is the expected behaviour I will work with it.....


Walter
Image