Results 1 to 16 of 16

Thread: text box help

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: text box help

    Quote 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
  •  



Click Here to Expand Forum to Full Width