Recent

Author Topic: TRxMemoryData and TBufDataset Write to XML / Stream  (Read 7796 times)

mytimeman

  • New Member
  • *
  • Posts: 10
TRxMemoryData and TBufDataset Write to XML / Stream
« on: August 04, 2011, 09:34:43 am »
Hi, I was looking at the TRxMemoryData dataset (because I like the rx grid components) and this seems to do pretty much everything I need except write to a file/stream.

I had a look at the TBufDataset component and this seems to have a very well structured method of writing to a stream. Which with a few tweaks would work with TRxMemoryData dataset.

I've not tested it in depth but it seems to work ok.

It seemed to me that you could make the write to file / stream process generic for both datasets.

So the question is

1) Would this be a good idea or would it introduce an unwelcome dependancy.
2) how best could I request the write to xml/stream code is added to the rx components 
            (either the generic or non-generic version) ?



The code is attached - it essentially produces a subclass of the TRxMemoryData dataset with the abilities to export the data. NB - requires a slight change to the visibility of the FreeIndexList procedure in rxmemds.pas.

Any comments would be welcome







BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TRxMemoryData and TBufDataset Write to XML / Stream
« Reply #1 on: August 04, 2011, 10:52:21 am »
Best way to request this is by opening a bug on the bugtracker with your patch. It probably helps if you add the word [Patch] to your description, fill out the required fields and set it to Feature (not bug)...
I think the rx components are either in Lazarus CCR or default Lazarus; you might want to check this, as this influences the bug category you have to assign...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

mytimeman

  • New Member
  • *
  • Posts: 10
Re: TRxMemoryData and TBufDataset Write to XML / Stream
« Reply #2 on: August 05, 2011, 09:29:33 am »
Ok thanks BigChimp.  :D

I'll try that.

 

TinyPortal © 2005-2018