I'm having a hard time setting and calling a String array class property properly.
Current Class Property
Private pNames() As String
'pNames Properties
Public Property Get Names() As String
Names() = pNames
End Property
Public Property Let Names(Names As String)
pNames() = Names
End Property
Current Compilation Error
Compile Error: Expected array
on the below line, specifically highlighting LBound:
For Loop1 = LBound(EditCategories.Names) To UBound(EditCategories.Names)
How can I register this property properly as a String array?
What I've Tried
Public Property Let Names()(Names As String) which highlights the empty parentheses and throws:
Argument required for Property Let or Property Set
Public Property Let Names(Names() As String) which highlights the entire line and throws:
Definitions of property procedures for the same property are inconsistent, or property procedure has an optional parameter, a ParamArray, or an invalid Set final parameter