If I have a for loop with a function in it

For i = 0 to ubound(myarray)
'code
next

does vb have to call the function every time it loops, or does it store the value of the call in memory?

Thanks.