Code:
Function MyFunction
Dim MyCtrl(1)
MyCtrl(0) = "First String"
MyCtrl(1) = "Second String"
MyFunction = MyCtrl
End Function
'Now access the array from the above function
Code:
Dim CtrlName
CtrlName = MyFunction ' get Type Mismatch at this line
for i=0 To Ubound(CtrlName)
MsgBox CtrlName(i)
next