I am trying to pass an array of user defined types to a function. I am getting error code "byref argument type mismatch". If I change everything to an array of string type it works fine.
Declared value:
Calling value:
function:
any ideas?
Declared value:
Code:
Type ClassificationArray
Code As String
Desc As String
End Type
Public ClassificationAry() As ClassificationArray
Calling value:
Code:
xx = LoadClassifications(Command2(Index).Caption, ClassificationAry)
function:
Code:
Function LoadClassifications(ByRef DBClass As String, ByRef ClassAry As ClassificationArray)
any ideas?