Jump to content

Talk:Visual Basic/Functions and Subroutines

Page contents not supported in other languages.
Add topic
From Wikiversity

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

Start a discussion about Visual Basic/Functions and Subroutines

Start a discussion