
Passing Property Arrays to Sub Routines
"Property array" was a little daring. I am new to OOP. What I meant was
Property procuderes that act like arrays. Like this
Public Property Get Ext(iIndex As Integer) As String
Ext = mstrExt(iIndex)
End Property
Public Property Let Ext(iIndex As Integer, sData As String)
mstrExt(iIndex) = sData
End Property
The Index aurgumet acts like the Index of an array index. Then in the form I
call the sub like this
Call MySub(ByRef Ext())
MySub simply would fill Ext() with data. I hope this is easier to understand.
Quote:
> MaxBenson ,
> OK??? , what is the signature for MySub? Help us help you!
> How is MyPropertyArray set up? What do you mean precisely by
> a Property Array?.
> Neila
> >Is it even possible to pass property arrays to sub routines. I tried it
> >and it said "Aurgument not optional" as if it wanted a specific element.
> >To Clarify:
> >Call MySub(MyObject.MyPropertyArray())
> >Error: Aurgument not optional