|
-
Mar 28th, 2001, 06:04 AM
#1
Thread Starter
Lively Member
hi,
how can i add something what i typed into a textbox to a txt file??
-
Mar 28th, 2001, 06:11 AM
#2
Hyperactive Member
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
-
Mar 28th, 2001, 08:43 AM
#3
Thread Starter
Lively Member
wat bedoel je met :
sSchrijfString = Me.txtName.Text ?????
me.txtName.Text -> kan ik dit vervangen door de textbox (text1.txt)? ??
-
Mar 28th, 2001, 08:50 AM
#4
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|