Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Inputting in VB6?

Options
  • 15-02-2002 3:24pm
    #1
    Closed Accounts Posts: 5


    What is the code for placing the contents of a text file into a label by clicking a command button?


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    This wouldn't happen to be your homework would it?

    Read the contents of the file into a string variable, we'll call it sTitle. Then set the label, called lblTitle, to the string.
    lblTitle = sTitle
    

    :)


  • Registered Users Posts: 2,494 ✭✭✭kayos


    Bold Phil bold never rely on the default property of a control.

    kayos


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    Originally posted by kayos
    Bold Phil bold never rely on the default property of a control.

    Indeed, and you an OO chappie too...


Advertisement