Board index » delphi » How to save CheckBoxes in a textfile ?

How to save CheckBoxes in a textfile ?

Huy,

How can you save 200 CheckBoxes on a TabbedNotebook in a textfile ?
Each CheckBox is followed by an EditBox, and the contents of this
box should be written behind the caption of the CheckBox in the
textfile.

An example:

Caption of the CheckBox:        EditBox:
-----------------------------------------
TSF                             4

The text in the file should be:  TSF (4), <the rest of the list>, ...

Thank you for your help !

 

Re:How to save CheckBoxes in a textfile ?


How about you loop through the components array, (or the controls array, I
forget which is appropriate in this case), checking for your check boxes
being checked, and then write the state and the edit value to a line of a
memo field, then save that puppy to a file?

I would think that would work.
Brad Miller
Timeoil...@aol.com

Other Threads