S
snesbit
I have a structure called SearchAreaListItem.
The structure has some properties.
The application implements this as a collection.generic.list(of SearchAreaListItem)
I load the collection up item at a time stuffing values into the item then adding the item to the
collection.
Now here come the rub.
There is one property attached to SearchAreaListItem, that I need to CHANGE so we can track whether the item has been accessed.
However when I try the following;
STEP 1: Dim SearchAreaList as new collection.generic.list(of SearchAreaListItem)
STEP 2: Call function to load each item and add to collection
STEP 3: Try to set the Accessed property on Item X
SearchAreaList.Item(x).Accessed = True
STEP 3 is not acceptable to Visual Studio and I get the design time error
Error 1 Expression is a value and therefore cannot be the target of an assignment.
Why can't I set a property of a structure through an index of a collection.generic.list(of SearchAreaListItem)??
The structure has some properties.
The application implements this as a collection.generic.list(of SearchAreaListItem)
I load the collection up item at a time stuffing values into the item then adding the item to the
collection.
Now here come the rub.
There is one property attached to SearchAreaListItem, that I need to CHANGE so we can track whether the item has been accessed.
However when I try the following;
STEP 1: Dim SearchAreaList as new collection.generic.list(of SearchAreaListItem)
STEP 2: Call function to load each item and add to collection
STEP 3: Try to set the Accessed property on Item X
SearchAreaList.Item(x).Accessed = True
STEP 3 is not acceptable to Visual Studio and I get the design time error
Error 1 Expression is a value and therefore cannot be the target of an assignment.
Why can't I set a property of a structure through an index of a collection.generic.list(of SearchAreaListItem)??