Page 1 of 1

ADO saving/loading

Posted: 25.05.2012, 02:09
by SilverCrest
Hello,

I just recently starting exploring ZeosLib V.7 with Delphi XE2.

My question is does ZTable support ADOTable SaveToFile / LoadFromFile functions?

What I would like to do is having MSAccess DB connected via ZConnection and ZTable to save open table to file and then load it back to ZTable after disconnecting from DB.

Is there a way to do so?


Kind regards, SilverCrest

Posted: 25.05.2012, 12:48
by EgonHugeist
SilverCrest,

an example:

(ADOTable.Fields[0] as TBlobStream).LoadFromFile(AFielname); should work. It's the same like in all DB units.

Michael

Posted: 26.05.2012, 16:33
by SilverCrest
Michael,

thank you for example, however I would like to save _entire_ table to file.
ADOTable that comes with Delphi has function SaveToFile(filename) and LoadFromFile(filename), is there anything similar in Zeoslib?

Kind regards, SilverCrest

Posted: 27.05.2012, 00:07
by EgonHugeist
SilverCrest,

oh i missunderstud the purpose of your question. I think we do not support that feature actually. Can you tell me which format that exported files have? An example eventually?

Michael