#1 2018-05-22 04:12:48

Jimsiri
Member
Registered: 2018-05-21
Posts: 2

ToClientDataSet

Hi,
I am very new to mormot. I read some mormot document and feel its a great framework.
I follow examples in section 8.1.6/8.1.7 with Lazarus(1.8)/FPC it works fine.
Then I try to use ToClientDataSet(...) in 8.1.9, it wouldn't compile under Lazarus, because unit SynDBMidasVCL.pas uses DBCommon (thru SynDBVCL.pas) which is in Delphi but not in FPC.

So I suppose this function (ToClientDataSet()) is for Delphi ONLY.
But when I looked at SynDBMidasVCL.pas, it does have section that define for FPC, this make me wondering do I miss understand something?
Under Lazarus/FPC if I want to show results from Props.Execute() (TSQLDBConnectionProperties) unto TDataSet for UI i.e. TDBGrid,
How can I do that?

Thanks

Jim Sirikolkarn

Offline

#2 2018-05-22 07:54:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: ToClientDataSet

Yes, by definition TClientDataSet (aka Midas) is a Delphi-only thing.

But you may be able to run the TDataSet-based wrappers like SynDBVCL (from binary) or mORMotVCL (from JSON).
We didn't use this yet, so perhaps there is still some patches to apply for LCL compatibility.

Offline

#3 2018-05-22 07:58:45

Jimsiri
Member
Registered: 2018-05-21
Posts: 2

Re: ToClientDataSet

Thank you,
I'll look for the binary format.

Best regard,
Jim Sirikolkarn

Offline

Board footer

Powered by FluxBB