Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling user defined function in MDX

Status
Not open for further replies.

svega

Programmer
Jul 21, 2002
2
US
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!

Thanks,
Svega
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top