UncleRonin
Well-known member
Say for example that there is a function GetSomething() which returns some Object. What happens when the following is performed?
Will GetSomething() be reexecuted each time a Case is tested or will its result be stored in memory somewhere? So will it be executed once and then its result in memory be evaluated each time or will it be executed twice? *scratch* Anybody know?
Select Case GetSomething()
Case A
...
Case B
...
End Select
Will GetSomething() be reexecuted each time a Case is tested or will its result be stored in memory somewhere? So will it be executed once and then its result in memory be evaluated each time or will it be executed twice? *scratch* Anybody know?