Read/Write grid settings to/from ini file

moongodess

Active member
Joined
Dec 23, 2004
Messages
40
Hi!!
I have a grid in my project that must have some properties saved and loaded..
I created a sample txt file with some things that I have to save about that grid.
I was wondering if it is possible to read the file doing something like this:

Dim c as column
for each c in columns
Do something
next

Dim g as group
for each g in groups
Do something
next

I have the mentalis class to read and write to some file, but with that its not possible to have quotes and subquotes.

Can someone help, please?
 

Attachments

The best thing to do in your case is use an XML file instead of a txt/ini file. When you load the XML you can then iterate the collection similiar to your current code.
 
I searched a lot and I found a way to create a file like the attached.. (This one was made by me :rolleyes: )
Now I need to know how can I read from each section, in order to get a collection with columns information, another with groups information, etc.
 

Attachments

Back
Top