The writes/read the data from many objects to/from the file - it's very important
Hi All:wave:
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 :thumb: for a some answers
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
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?
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....:sick:.... I need a some help in this:
I greet
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.
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