-
Hi there,
I don't get this stuff at all.
I have three text boxs named,strFirst,strMiddle,strLast.
I need to write these three strings to a file for later use.
I am not sure how to do this so I can then repopulate a seperate form using those three records. I know how to do it with one record but how do I fill in three seperate labels with three seperate strings from one file?
any help or suggestions would be great.
thank you
-
To save the strings to a file
Code:
Open "MyFile.txt" For Output As #1
Write #1, strFirst, strSecond, strThird
Close #1
To retrieve them from the file
Code:
Open "MyFile.txt" For Input As #1
Input #1, sOne, sTwo, sThree
Close #1
strFirst.Text = sOne
strSecond.Text = sTwo
strThird.Text = sThree
-
cool thanks
thank you that seems simple enough.