Hi all,
I am creating a program that has various text boxes involved. I want
the user to be able to store the text values so that the next time the
program is run the data is visible. Can anybody please help me do this
without storing data in the registary?
Any help will be greatly appreciated.
Many Thanks,
Mark
Max Kudrenko - 27 Jun 2007 18:26 GMT
Mark,
You can use text files instead. Check the following functions:
WritePrivateProfileString
GetPrivateProfileString
WritePrivateProfileSection
GetPrivateProfileSection
Hope this helps,
Max Kudrenko
> Hi all,
> I am creating a program that has various text boxes involved. I want
[quoted text clipped - 4 lines]
> Many Thanks,
> Mark
marks542004@yahoo.com - 28 Jun 2007 04:54 GMT
> Hi all,
>
[quoted text clipped - 7 lines]
> Many Thanks,
> Mark
a simple text file should be all you need , the number and order of
them is known and controllable.
use app.path to get the location of the exe and put the file in the
same place .
open filename for output as #ffn
print #ffn, text1.text
etc
close #ffn
then use
ffn = freefile ()
open filename for input as #ffn
input #ffn, text1.text
close #ffn
the input can be in the form load
the output in the form. qryunload
BeastFish - 28 Jun 2007 05:43 GMT
> use app.path to get the location of the exe and put the file in the
> same place .
That will bite you in the hiney with Winders Vista. You will have to save
any file (flatfile, text, INI) to one of the Vista-allowed paths.