Micha Nelissen wrote:
Jon Foster wrote:
  
I created a TDBF component on a form and created some FieldDefs in it.
The FieldDefs won't stay between Lazarus sessions. I use this TDBF as a
    

The FieldDefs or the Fields ?
  
FieldDefs.

  
sort work table so its used only by my code and is not seen by the user.
I had created a TDBF connected to the usual components to give me a data
entry form and this table's FieldDefs persist.

Ok, a little more experimenting I figured out that the FieldDefs will
stay if I leave the table "active" when I save the form. Is this the way
it is or should the FieldDefs persist whether I leave the table open or
    

Are they really stored in the .LFM based on the .Active property value ?
  
I haven't looked but it seems to work. I can create a TDBF with "OpenMode" set to "omAutoCreate" and the table auto-creates itself. So it can't be pulling the fields from an existing table, because it didn't exist in the first place.

-Jon
-- 
Jon Foster
JF Possibilities, Inc.
[EMAIL PROTECTED]
541-410-2760
Making computers work for you!
_________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to