Results 1 to 6 of 6

Thread: something I can do under VBa I don't know how to do unnder VB

  1. #1

    Thread Starter
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    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
    ?
    'What's this bit for anyway?
    For Jono

  2. #2
    Hyperactive Member
    Join Date
    May 2005
    Posts
    324

    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.

  3. #3
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    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
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  5. #5
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    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...
    Best Regards,
    ERAN
    Attached Files Attached Files
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  6. #6

    Thread Starter
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    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.
    ?
    'What's this bit for anyway?
    For Jono

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width