RTC Forums
May 01, 2024, 09:31:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Error compiling iOS Device with TRtcMemDataSet  (Read 3397 times)
ISIGest
RTC Expired
*
Posts: 121


« on: September 30, 2013, 11:42:49 AM »

When I try to compile a project that use TRtcMemDataSet component in iOS device I got an error:
[DCC Error] dmMain.pas(313): E2003 Undeclared identifier: 'TRtcMemDataSet'

How can I use a "asDataSet" result with iOS or Android?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: September 30, 2013, 12:22:11 PM »

TRtcMemDataSet component is not compatible with the NextGen compiler. For iOS and Android Projects, you can use the TClientDataSet component from Delphi together with the TRtcDataSetMonitor component from the RTC SDK.

To copy data from a TRtcDataSet to a TDataSet (like TClientDataSet), you can use these two procedures from the rtcDB unit:

// Copy field definition from a TRtcDataSet (used for transport ) to a Delphi TDataSet
procedure RtcDataSetFieldsToDelphi(rtcDS:TRtcDataSet; DelphiDS:TDataSet);

// Copy data rows from a TRtcDataSet (used for transport) to a Delphi TDataSet
procedure RtcDataSetRowsToDelphi(rtcDS:TRtcDataSet; DelphiDS:TDataSet);

And if you need to copy data from a TDataSet to a TRtcDataSet, you can use this procedure (usually required on the Server side):

// Copy data from a Delphi TDataSet into a TRtcDataSet (used for transport)
procedure DelphiDataSetToRtc(DelphiDS:TDataSet; rtcDS:TRtcDataSet; ClearFieldDefs:boolean=True; OnlyDataFields:boolean=True);

Best Regards,
Danijel Tkalcec
Logged
ISIGest
RTC Expired
*
Posts: 121


« Reply #2 on: September 30, 2013, 01:00:01 PM »

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 17 queries.