Richard Comito
asked on
Return type of function 'rsEmailList' is not CLS-compliant warning.
I am getting a Warning for rsEmailList in the first line of the following funciton that says "Return type of function 'rsEmailList' is not CLS-compliant". What do I need to do to this function to make it compliant?
Thanks,
Public Function rsEmailList() As ADODB.Recordset
'Create a Recordset to set to the Function recordset
Dim rs As New ADODB.Recordset
' set Function RecordSet to rs Recordset
rsEmailList = rs
Dim cmdEmailList As New ADODB.Command
cmdEmailList.CommandText = "selLAStageTixAddress"
cmdEmailList.CommandType = ADODB.CommandTypeEnum.adCm dStoredPro c
cmdEmailList.ActiveConnect ion = objConn
rsEmailList.CursorLocation = ADODB.CursorLocationEnum.a dUseClient
rsEmailList.LockType = ADODB.LockTypeEnum.adLockR eadOnly
rsEmailList = cmdEmailList.Execute
End Function
Thanks,
Public Function rsEmailList() As ADODB.Recordset
'Create a Recordset to set to the Function recordset
Dim rs As New ADODB.Recordset
' set Function RecordSet to rs Recordset
rsEmailList = rs
Dim cmdEmailList As New ADODB.Command
cmdEmailList.CommandText = "selLAStageTixAddress"
cmdEmailList.CommandType = ADODB.CommandTypeEnum.adCm
cmdEmailList.ActiveConnect
rsEmailList.CursorLocation
rsEmailList.LockType = ADODB.LockTypeEnum.adLockR
rsEmailList = cmdEmailList.Execute
End Function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
As always Thanks. This was a project I just imported into 2005.
Rich