Results 1 to 6 of 6

Thread: How to include a function call as a parameter in another function?

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    3

    How to include a function call as a parameter in another function?

    For example:
    VB Code:
    1. Public Function RefreshPages(ctl1 as control, ctl2 as control, ctl3 as control, sub_name as ??????)
    2.  
    3.      ctl1.do something
    4.      ctl2.do something
    5.      ctl3.do something
    6.  
    7.      'now call the sub or function that was passed as a paramater
    8.  
    9.      sub_name()
    10.  
    11. End Function

    So whenever i finish doing whatever with the controls that the function was passed, i can then call the sub or function that was also passed.
    Last edited by C_Huegel; Apr 4th, 2004 at 03:33 PM.

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