View Issue Details

IDProjectCategoryView StatusLast Update
0005680JEDI VCL00 JVCL Componentspublic2011-11-30 19:36
ReporterbazilioAssigned Tojfudickar 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0005680: TJvMemoryDataSet.FRecords moved to private section
DescriptionHi!

I use TJvMemoryDataSet as a buffer to display my object data in the data-aware such as TDBGridEh.

And I need to do custom sorting of JvMemoryDataSet, rules of sorting is not trivial asc of desc.

I an older versions of JVCL I done it with:
using
type THackJvMemoryData = class helper for TJvMemoryData
public
procedure SwapRecords(Idx1: integer; Idx2: integer);
end;

procedure
THackJvMemoryData.SwapRecords(Idx1, Idx2: integer);
begin

FRecords.Exchange(Idx1, Idx2);
end;

In the last version of JVCL you move FRecords to private section. I could hack to access private members through well known techniquies as fake classes and cast.

But may be you may add public procedure SwapRecords in the next revision of JVCL?
TagsNo tags attached.

Activities

jfudickar

2011-11-06 14:06

developer   ~0019089

Added as a protected procedure.
Please verify

ZENsan

2011-11-06 14:33

reporter   ~0019090

I'll juts move that to protected section.

ZENsan

2011-11-06 14:33

reporter   ~0019091

Ups.. did not see comment :)

Arioch

2011-11-30 18:56

developer   ~0019165

I wonder of status, what kind of "user feedback" is needed still ?

jfudickar

2011-11-30 19:36

developer   ~0019166

I wanted to give him the chance to say, ok, or not nice, or what ever.
My implementation was a little bit different from his wish.

But no answer, so we should close it :-)

Issue History

Date Modified Username Field Change
2011-10-13 07:35 bazilio New Issue
2011-11-06 14:06 jfudickar Note Added: 0019089
2011-11-06 14:06 jfudickar Status new => feedback
2011-11-06 14:33 ZENsan Note Added: 0019090
2011-11-06 14:33 ZENsan Note Added: 0019091
2011-11-30 18:56 Arioch Note Added: 0019165
2011-11-30 19:36 jfudickar Note Added: 0019166
2011-11-30 19:36 jfudickar Status feedback => resolved
2011-11-30 19:36 jfudickar Resolution open => fixed
2011-11-30 19:36 jfudickar Assigned To => jfudickar