M
meeman666
Guest
ok,
i'm making a program that has a save feature and i know the code to save the file with one text box is
and to load that would be
but whats the code to save and load if what needs to be saved and then loaded has more then one text box. I've tested many different ways but none have worked.
Please help.
Thanx.
i'm making a program that has a save feature and i know the code to save the file with one text box is
Code:
Private Sub Command2_Click()
CommonDialog1.Filter = "All Files [*.*]|*.*"
CommonDialog1.ShowSave
FSave = CommonDialog1.FileName
Open FSave For Binary Shared As #1: Close #1: Kill FSave
Open FSave For Output Shared As #1
Print #1, Text1.Text
Close #1
End Sub
and to load that would be
Code:
Private Sub Command1_Click()
CommonDialog1.Filter = "All Files [*.*]|*.*|data Files [*.dat]|*.dat|"
CommonDialog1.FilterIndex = 2
CommonDialog1.ShowOpen
FOpen = CommonDialog1.FileName
Open FOpen For Input As #1
Text1.Text = Input(LOF(1), 1)
End Sub
but whats the code to save and load if what needs to be saved and then loaded has more then one text box. I've tested many different ways but none have worked.
Please help.
Thanx.

