You are not logged in.
Pages: 1
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
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
Thank you,
I'll look for the binary format.
Best regard,
Jim Sirikolkarn
Offline
Pages: 1