Has anyone written a user defined function that takes a safearray as a parameter? What is considered a better practice declaring parameters of type SAFEARRAY(type) or VARIANT? Any info will be greatly appreciated!
Well, after some messing around it looks like AS always passes a VARIANT with a SAFEARRAY of VARIANTs to UDFs. If a UDF is declared to take a SAFEARRAY(type) as a parameter in type library AS will fail to call it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.