Talk:Visual Basic/Functions and Subroutines

From Wikiversity
Jump to navigation Jump to search

Why don't you give an example that passes an array as a parameter?

How to do a premature return, i.e. why does the following not work

 Sub foo(x as Integer)
   if (x = 1) then
     return             '// how to exit foo???
   end if
 End sub