PDA

Click to See Complete Forum and Search --> : Calling Functions with data


Wald
Feb 23rd, 2001, 04:24 AM
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

agent
Feb 25th, 2001, 08:14 PM
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)