Results 1 to 6 of 6

Thread: The writes/read the data from many objects to/from the file - it's very important

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    The writes/read the data from many objects to/from the file - it's very important

    Hi All
    I have: the form: here is 2 array of controls (lblNames(3) and lblCount(20)) as well as I have one combobox
    Someone know, how I should wrote the data from many objects to a new the file and how I can such file read in the same form.
    Please about the some example of code - thanks in advance for a some answers
    I know, I know, my English is bad, sorry .....

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: The writes/read the data from many objects to/from the file - it's very important

    One solution is to use an INI file to store your data and later read from it.
    You can loop through your control arrays and write the captions, then loop through your combo box and write the values. There is a FAQ on this forum for reading/writing INIs, including sample code.
    http://www.vbforums.com/showthread.php?t=349993
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: The writes/read the data from many objects to/from the file - it's very important

    Can you please post your source code on this thread, please kind sir?
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Re: The writes/read the data from many objects to/from the file - it's very important

    ThEiMp

    I'm sorry, I don't possess such code at present because I don't know how to make something like this (such code) - so........ I need a some help in this:

    I greet
    I know, I know, my English is bad, sorry .....

  5. #5
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: The writes/read the data from many objects to/from the file - it's very important

    Okay then; You have to make a control array with those two controls. Only make the control array, loop twice in the For ..... Next loop.
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Re: The writes/read the data from many objects to/from the file - it's very important

    Hi
    I'm sorry ThEiMp about this I know.
    I found in internet a several ways but still I don't understand several things. I noticed, that a some programmers it use API function (not all to this designed) e.g. they one it use GetPrivateProfileSection , GetPrivateProfileString, WritePrivateProfileSection and WritePrivateProfileString however other it use
    GetPrivateProfileSection and GetPrivateProfileString only. Different it are create the own functions without API's.
    Namely I'm this all a confused strongly. I don't know what really it's essential or fundamental in this. It lacks me also in this all, examples of writes and reading to/from many different objects.
    I don't understand this all for very. I will learn willingly, but someone would me explain it?


    I mean about fact such like this to do not complex code not wanted. In my opinion, code should to be a simple, effective and quick relatively.

    So, still I need to help

    Thanks for reply, thanks in advance
    I know, I know, my English is bad, sorry .....

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