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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Inputting in VB6?

  • 15-02-2002 2: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, Registered Users 2 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, Registered Users 2 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