There is not a Variant datatype in the .NET framework. Try changing the datatype to Object instead.
Brandon -----Original Message----- From: MAHACO [mailto:[EMAIL PROTECTED] Sent: Sunday, July 20, 2003 6:13 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Implementing an interface with an argument of datatype 'variant' in dotnet Hello there, I am in a process of porting my existing COM based application to one with some .Net components. I have an object that implements an interface IDataStore, on of the methods of IDatastore has a parameter of type variant, the signature is, Public Function InsertRecordPA(ParamArray pa() As Variant) As Collection When i try to implement this in a .Net COM interop, i receive following error, 'InsertRecordPA' Cannot implement 'InsertRecordPA' because there is no matching function on interface IDataStore. Is there any way to implement this method in .Net Thanks in advance Notice of Confidentiality: This transmission is intended only for the use of the individual or entity named above. It may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. Further, disclosure of this information may be specifically prohibited under state or Federal law. If you are not the intended recipient, or the employee or agent of the recipient responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.