-
When I create a program...and say I want to have a statistics page or something of the sort, how do I save the contents that are in a textbox or a label? If I have a label named "LblInfo" what code would I type in if I wanted it to save its contents upon exiting the program? Please help me out...I need HELP!
-
Dim tmpString As String
tmpString = Text1.text
-
Here is how to load files:
Code:
Private Sub Command1_Click()
Open "C:\file.txt" For Input As #1
Label1.Caption = Input$(LOF(1), 1)
Close #1
End Sub
To save files:
Code:
Private Sub Command2_Click()
Open "C:\file.txt" For Output As #1
Print #1, Text1.Text
Close #1
End Sub