Results 1 to 3 of 3

Thread: Passing controls ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    I can pass a form to a function, but i cant pass a control - it seems to pass its default properly (ie .text).

    Any ideas for how i do this?

    Thanks,
    alex.

  2. #2
    Guest
    Try defining the input of the sub/function as control.

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I assume you know the type of control that you want to pass, so you should code the receiving subroutine to expect the specific type of control you are passing to it. For example if you want to pass a TextBox, the receiving subroutine should be defined something like:

    Public Sub MySubroutine(MyTextBox As TextBox)

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