English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-21 16:44:15 · 1 answers · asked by Christina 2 in Computers & Internet Programming & Design

1 answers

Typically a passing variable is a variable that is passed from one subroutine (or function) to another.

For example.

sub ImaTest()
dim a = 2
dim b = 3
dim result as integer
result = addme(a,b)
end sub

function addme(byval a, byval b) as integer
addme = a + b
end function

The above example passes two variables (a and b) to the function addme, which returns the result. 'a' and 'b' are both passed variables.

- Rich
http://www.IMAgolfer.com

2006-11-21 17:51:43 · answer #1 · answered by Rich 2 · 0 0

fedest.com, questions and answers