RTC Forums

Subscription => Support => Topic started by: wbroyles on August 12, 2013, 10:58:33 PM



Title: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: wbroyles 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


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: D.Tkalcec (RTC) 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


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: wbroyles on August 13, 2013, 01:29:38 PM
Danijel,

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

Wade


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: D.Tkalcec (RTC) on August 13, 2013, 02:04:16 PM
Check RtcDataSetFieldsToDelphi and RtcDataSetRowsToDelphi procedures from the rtcDB unit.

Best Regards,
Danijel Tkalcec


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: wbroyles 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.



Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: D.Tkalcec (RTC) 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


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: Theprasit 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


Title: Re: E2003 Undeclared identifier: 'TRtcMemDataSet' in iOS Delphi XE4
Post by: D.Tkalcec (RTC) 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