|
-
Jun 2nd, 2008, 11:38 AM
#11
Hyperactive Member
Re: text box help
 Originally Posted by Hack
How about
Code:
Private Sub Form_Load()
If Dir$(App.Path & "\mytext.txt") <> vbNullString Then 'it exists - do it
Print #1,Text1.Text & vbCrLf
Print #1, Text2.Text
Close #1
Else
Msgbox App.Path & "\mytext.txt does not exist." 'tell them it does not exist
End If
End Sub
I think you meant to say that if the string does exist, then you want to open it as #1, and then read the values and transfer them to the textboxes. You wouldn't be printing them from the textboxes in the Form_Load event.
Last edited by Hack; Jun 2nd, 2008 at 11:42 AM.
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
|