Results 1 to 3 of 3

Thread: Please help me!!!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    Exclamation

    please help me I am desperate!!!

    Is it possible to pass the name of an object such as a textbox to a procedure, so the procedure can access it's properties.
    A simple example of what I want to do is put the same message in 30 different text boxes.

    I would be most greatful for any help, and please let me know if you need anymore info

    [email protected]

    Cheers
    Nick

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Is this what you are looking for....

    Module1
    Code:
    Public Sub ShowHello(ByVal t As TextBox)
    
        t.Text = "helloworld"
    
    End Sub
    Form1
    Code:
    Call ShowHello(Text1)
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    Yeah, that's it mate. I thought it was more difficult and was trying stupid things.

    Thank you very much.

    Nick

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