I'm not sure how to do this. I want to create a function inside my class that will return a boolean on the existence of some data within any structures created with the class.
What I don't know how to do is refer to the object that called the function to get values, including the number of items in the referring objects array.
Code:
Public Class MyObject
Public Object1 as String
Public Object2 as String
End Class
Public Class MyObjectList
Public Objects() as MyObject
Public Function Contains(Obj as String) as boolean
For I = 0 to [ObjectCreatedFromClass].[number of items in the objectcreatedfromclass]
If [ObjectCreatedFromClass](I) = Obj then
Return True
End if
Next I
Return False
End Function
End Class
Comment