Subject Re: [IBO] TIBOQuery.TBlobField - Saving to Stream
Author Luis Semedo Duarte
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
> Supposedly your FDefinitions structure has a compatible class
within
> it, to which the stream's contents could be assigned, but your
> procedure does not do anything with the stream after filling its
> buffer. It is just a local memory buffer that is not associated
with
> anything, e.g., a compatible TGraphic, TMemo, or whatever member
> object inside the structure.
>
> I won't attempt to guess what's intended here, but one supposes
that
> your FDefinitions.Clear method actually stores the current contents
> of its member buffers somewhere before clearing them. Otherwise, it
> seems a bit pointless to loop through a dataset doing all this work
> on every record, if the ultimate objective is to fill the structure
> with the data from the last record.
>
> Helen
>

The FDefinitions Class is able to handle the contents of the stream.
The ms variable is only on the procedure for example purposes, the
FDefinitions has a TMemoryStream field. What is inside the stream is
a text file, and on the FDefinitions class there is also an
TSringList Field to handle the text file. My main problem is that
after assigning TSringList, its always empty!

About FDefinitions.Clear method it's actually misplaced. It really
should not be inside the loop.
The FDefsDataSet holds the application definitions per user and i
need them on a structure like TCollection/TCollectionItem so that
them can be available on the application at all time for manipulation
and interpretation.

Luis Semedo Duarte