Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing an Array to DLL

Status
Not open for further replies.

ndalli

Programmer
Nov 6, 1999
76
0
0
MT
Hi,

I am creating a dll to which I need to pass an array. I am inserting the following code:

Public Get GetValues() as Variant()
End Sub

Public Let GetValues(ParamArray ArrayList() as Variant)
gbGetValues() = ArrayList()
End Sub


For some reason VB is not excepting the code.

Can anyone please help?

Many thanks in advance
 
GetValues sounds like it should be a method, paired with SetValues in which case they would be Public Functions. If you want to declare them as property pairs then:

Public Property Get GetValues() As Variant()
End Property


Public Property Let GetValues(ParamArray ArrayList() As Variant)
gbGetValues() = ArrayList()
End Property

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top