hi,
how can i add something what i typed into a textbox to a txt file??
Printable View
hi,
how can i add something what i typed into a textbox to a txt file??
This will add a line to a textfile:
sSchrijfString = me.txtName.text
Dim n As Integer
n = FreeFile
Open "C:\test.txt" For Append As #n
Print #n, sSchrijfString
Close #n
wat bedoel je met :
sSchrijfString = Me.txtName.Text ?????
me.txtName.Text -> kan ik dit vervangen door de textbox (text1.txt)? ??
Me.txtName.text is a textfield on the form so you can replace it with text1.txt or a regular string.
The Me keyword is just a way of easily find the controls on your form / acces properties and methods of your form.
Regards,
Luc