Public Function qtest(ByVal n As Integer) As Variant
Dim res(0 To 3) As Variant
res(0) = 2.12 * n
res(1) = 3.14 + n
res(2) = 1.18
res(3) = 2.12
qtest = res
End Function
Public Sub aaa()
Dim fnc(0 To 3) As Variant
fnc = qtest(3) '==== This line returns error "Cannot assign to array"
zz = fnc(0)
zz = fnc(1)
zz = fnc(2)
End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE