ToeJamNEarl
Programmer
Hey guys,
I have created a user define type in VB that is defined as follows:
Now in a Function I have written I wanna create a variable that uses the defined type as a parameter to the stored procedure as follows:
Any ideas if I am doing something wrong here? I am getting errors.![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Much appreciated. Also what is the proper way to pass in arrays to a stored procedure?
Thanks
-Diran
I have created a user define type in VB that is defined as follows:
Code:
Type ErrorInfo
Code As Integer
Message As String
Location As String
End Type
Now in a Function I have written I wanna create a variable that uses the defined type as a parameter to the stored procedure as follows:
Code:
Public prmError As ErrorInfo
datCmd1.ActiveConnection = DBConnection
datCmd1.CommandType = adCmdStoredProc
datCmd1.CommandText = "Do_It"
Set prmError = datCmd1.CreateParameter("p_ErrorInfo", adUserDefined, adParamInputOutput)
datCmd1.Parameters.Append prmError
prmError.Code = intCode
prmError.Location = strLocation
prmError.Message = strMessage
Any ideas if I am doing something wrong here? I am getting errors.
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Much appreciated. Also what is the proper way to pass in arrays to a stored procedure?
Thanks
-Diran