Link to home
Start Free TrialLog in
Avatar of Richard Comito
Richard ComitoFlag for United States of America

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.adCmdStoredProc
        cmdEmailList.ActiveConnection = objConn
        rsEmailList.CursorLocation = ADODB.CursorLocationEnum.adUseClient
        rsEmailList.LockType = ADODB.LockTypeEnum.adLockReadOnly
        rsEmailList = cmdEmailList.Execute

    End Function
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Richard Comito

ASKER

Bob,

As always Thanks.  This was a project I just imported into 2005.

Rich