I have an object instance which I access with the ME as it accesses the instantiated object. I have a method that gets a collection of these objects and I wish to assign the first one to the instantiated object.
This is some of the code
Dim Books As New BookCollection(True)
Books.ListByThemeFeatured(ThemeID, 1) ' Fills the collection
If Books.Count > 0 Then
Me = Books(0) ' Should set the first item to the current object
End If
Is this possible?
EDIT: Me refers to the class that was instantiated. In this case it is a BookEntity Class. THis method would have been called using the following code
Dim Book As New BookEntity
Book.FeaturedBook() ' Should fill the book entity with a featured book