Delphi: using TClientDataset as an in-memory dataset

前端 未结 11 2236
无人及你
无人及你 2020-12-14 08:00

According to this page, it\'s possible to use TClientDataset as an in-memory dataset, completely independent of any actual databases or files. It describes how

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 08:51

    for some reason this is not working for me. I perform CreateDataset in design time, but it still crashes application. That is still unknown for me. One warning. DO NOT DO THIS:

    XXXClientDataSet.Close;
    XXXClientDataSet.Open;
    

    because it will report error. Instead of Open, use

    xxxClientDataSet.CreateDataset;
    

    In my application I needed to reset data and load it again, and that again caused error message.

提交回复
热议问题