something I can do under VBa I don't know how to do unnder VB
On an access database if I wanted to show all the records in a long list I could set the form to continueus... (can never spell that word) forms, so you get one under another.
With VB I have a situation where by I have an INI file in the INI is a value like count=44 and this tells the system to look for entries this1=foo ... this44=bar which has always worked well for variable sized lists and ment the project could "ship" sans extra libraries.
Now in this case the value for thisxx is the main key for a collection of values like this.
[foo]
first=thing
second=else
etc=etc
Now what I need is to read this little lot into some form of array and then present it as a "list" that the user can edit, add to and deleat to/from and then save with the index being re-written at the same time.
Sorta like a cheap database.
Now I can figure out the for each that will write them all back, I can give a good guess at how the index will be worked out... but the presenting the list is currently beyond me...
Any ideas?
Re: something I can do under VBa I don't know how to do unnder VB
Are you saying that you have a master-child relationships between two 'tables' (though the data is actually contained in text files)? If so, your best bet would probably be a MSHFlexGrid. With this you can have records from the master 'table' in one (or more) columns, with the cells being expanded to display the detail rows or contracted to hide them.
Re: something I can do under VBa I don't know how to do unnder VB
Hello .
I'm working on my own code but take a look at this class:
http://www.vbaccelerator.com/home/VB...NIFILE_CLS.asp
maybe it will help you with your project...
I will post my code later on..
Best Regards,
ERAN
Re: something I can do under VBa I don't know how to do unnder VB
Quote:
Originally Posted by Matt_T_hat
Now what I need is to read this little lot into some form of array and then present it as a "list" that the user can edit, add to and deleat to/from and then save with the index being re-written at the same time.
Sorta like a cheap database.
Now I can figure out the for each that will write them all back, I can give a good guess at how the index will be worked out... but the presenting the list is currently beyond me...
Any ideas?
Load the contents of a file into a Listbox and allow the users to do whatever they need to do, then just write the listbox contents back to your file.
1 Attachment(s)
Re: something I can do under VBa I don't know how to do unnder VB
Hello Matt_T_hat,
Here is my peace of code...
Tell me what you think... :wave:
Best Regards,
ERAN
Re: something I can do under VBa I don't know how to do unnder VB
Thanks for that.
I'm right in the middle of something heavy duty at work but once the project is over I plan to come back and play with this code. Thanks.
I'll let you know how I get on.