The method looks fine. ParamArray is simply an attribute, so COM will ignore it. ________________________________ From: [email protected] [[email protected]] on behalf of Greg Keogh [[email protected]] Sent: Friday, March 05, 2010 8:44 PM To: 'ozDotNet' Subject: RE: writing VB.Net 2008 com objects for VB6 that have arrays as parameters
Can anyone confirm that the following method is valid for being COM visible? <DispId(1)> _ Public Function MakePdf(ByVal reportFilename As String, ByVal outputFilename As String, ByVal connectionString As String, ByVal storedProcname As String, ByVal ParamArray parameters() As Object) As Integer I’ve never used a ParamArray in this way and I’m suspicious it might not be consumable by a VB6 COM client. If so, is there another way of doing this? Greg
