i have 1 property array:
i try using these way:Code:Public Property Get ObjectSelected(ByRef intList As Integer) As String On Error GoTo erro ObjectSelected = strObjectNames(intList) Exit Property erro: ObjectSelected = "" End Property Public Property Let ObjectSelected(ByRef intList As Integer, strObjectName As String) If intList = 0 Then ReDim strObjectNames(0 To intList) Else ReDim Preserve strObjectNames(0 To intList) End If strObjectNames(intList) = strObjectName PropertyChanged "ObjectSelected" End Property
but give an error: "run-time error '450': wrong number of arguments or invalid property assigment".Code:SelectedControls(0).ObjectSelected a, lstControls.List(i)
it's my first time doing the property type(arrays). can anyone help me?
thanks





Reply With Quote