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?
Last edited by Matt_T_hat; Oct 9th, 2005 at 04:18 AM.
Reason: change spelling in title
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
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.