RTC Forums
November 24, 2024, 05:10:28 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Small correction to "Copy TDataSet into rtc_DataSet"
Pages: [
1
]
« previous
next »
Print
Author
Topic: Small correction to "Copy TDataSet into rtc_DataSet" (Read 5389 times)
Walter
RTC License++
Posts: 16
Small correction to "Copy TDataSet into rtc_DataSet"
«
on:
November 25, 2009, 11:14:12 PM »
Just a couple of unnecessary lines. (A bit of Cut and Paste leftovers!)
Two nice functions! Thanks.
See two lines commented out.
How to copy data from a TDataSet into a rtc_DataSet object?
<..snip..>
if ClearFieldDefs then
begin
rtcDS.Clear;
for flds := 0 to DelphiDS.FieldCount - 1 do
begin
fdef := DelphiDS.FieldDefs.Items[flds];
fldname := fdef.Name;
// field := DelphiDS.FindField(fldname); <<<<<<<<<<<<<
// if assigned(field) then <<<<<<<<<<<<<
rtcDS.SetField(fldname,
RTC_DB2FIELD_TYPE[fdef.DataType],
fdef.Size,
fdef.Required);
end;
end;
<..snip..>
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Small correction to "Copy TDataSet into rtc_DataSet"
«
Reply #1 on:
November 26, 2009, 12:08:58 AM »
Thank you for your feedback.
I've updated the article now (removed the 2 unnecessary lines).
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...