return array from function in VBA -


all,

i write function return array of integers can index them, not aware of syntax vba. here pseudo code:

function getstats() integer dim returnval(4) integer returnval(0)=c2percent14 returnval(1)=c3percent14 returnval(2)=c4percent14 returnval(3)=c5percent14 getstats=returnval end function msgbox getstats(3) 

where these values integers, or should be, , can index return array stat want. thanks.

-rik

function getstats() variant 

getstats array , not integer


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -