Results 1 to 2 of 2

Thread: Calling Functions with data

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    2

    Unhappy

    Is there a function that you can use for calling een function with data.

    A example

    message "test"

    sub message(variab as string)
    call variab
    end sub

    sub test()
    msgbox "Hello"
    end sub

    'Do you use the function Call or is there another way

  2. #2
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    unfortunatly, this cannot be done. The only way to have a program decide which sub to call by string is to use structured programming (i.e. if...then or select case)

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