RTC Forums
November 24, 2024, 04:42:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4  (Read 6129 times)
wbroyles
RTC Expired
*
Posts: 21


« on: August 12, 2013, 10:58:33 PM »

I get and E2003 Undeclared identifier: 'TRtcMemDataSet' error trying to build a iOS app in XE4 using RTC 6.20. I don't get the error when I target win32. Is TRtcMemDataSet working in iOS targets?


Thanks

Wade
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: August 13, 2013, 06:59:32 AM »

Sorry, but the TRtcMemDataSet class was NOT ported to the NextGen compiler. The only suggestion I can make at this point, is to use another in-memory DataSet (like TClientDataSet). You can connect it to the TRtcDataSetMonitor if you need to track changes.

Best Regards,
Danijel Tkalcec
Logged
wbroyles
RTC Expired
*
Posts: 21


« Reply #2 on: August 13, 2013, 01:29:38 PM »

Danijel,

What is the best method to convert Result.asDataSet to TClientDataSet?

Wade
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: August 13, 2013, 02:04:16 PM »

Check RtcDataSetFieldsToDelphi and RtcDataSetRowsToDelphi procedures from the rtcDB unit.

Best Regards,
Danijel Tkalcec
Logged
wbroyles
RTC Expired
*
Posts: 21


« Reply #4 on: August 13, 2013, 03:17:47 PM »

Danijel,

Thanks!

PS - The TRtcMemDataSet shows active in the component palette when you select iOS as a target and is in the quick help target list when you mouse over the component in the component palette. The source of my confusion.

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #5 on: August 13, 2013, 04:26:11 PM »

Sorry for the confusion. I will try to make the "NextGen" version of the TRtcMemDataSet class shortly after Delphi XE5 is released, together with Android platform support. I hope Embarcadero will have completed making breaking changes to their TDataSet class by then.

Best Regards,
Danijel Tkalcec
Logged
Theprasit
RTC License++
*****
Posts: 42


« Reply #6 on: August 15, 2013, 01:55:15 PM »

Hi Danijel,

At the time you modify TRtcMemDataset for XE5, I suggest to add some more function like .asText['fld'], .asDateTime['fld'], .asInteger['fld'], .asCurrency['fld'] (came from FieldByName('fld').AsString, .. ). This will comply to TRtcValue style.

Is it possible?

TIA and Best Regards,

TS
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #7 on: August 15, 2013, 02:01:02 PM »

You already have access to the internal TRtcDataSet object though the "asDataSet" property of the TRtcMemDataSet component.

Best Regards,
Danijel Tkalcec
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.027 seconds with 17 queries.