syntax - VB6 Recursion and return variables in functions -


this syntax question. confused when "return variable" in function used return variable or method call. instance, if have:

function foo() boolean      foo = true      foo = foo , bar end function 

does second line in function act recursive call foo, or resolve true previous assignment?

to value of last assignment:

foo = foo , bar 

to make recursive call:

foo = foo() , bar 

the () makes difference. (btw, applies vba too.)


Comments