Hello,
I am trying to pass an array from my form to a Class.
This is what is in my Form
objFindName.NameArray(strNameArray) = mstrNameArray(24)
Here is what i have in my class
Option Strict On
Option Explicit On
Public Class clsFindName
#Region "DECLARATION SECTION"
Private strSearchName As String
Private intCount As Integer
Private strNameArray(24) As String
#End Region
#Region "PROPERTY: Array"
Public WriteOnly Property NameArray(ByVal strNameArray() As Object) As String
Set(ByVal value As String)
strNameArray(24) = value(24)
End Set
End Property
#End Region
Nothing i have tried is working and Google provides some help, but i must be searching for the wrong thing or not knowing what i am doing. I have passed strings before and they work, just not the array.
Any help is appreciated.
Thanks