The following line of code is giving me a compiler error:
_Level.StartPoint.X = 15
(Expression if a value and therefor can not be the target of an assignment.)
_Level is a struct. StartPoint is a readonly property which returns a struct. X is a read/write property which is an integer. Why would this cause an error instead of assigning the value of 15 to the property .X?
Note that the folloing code does work:
[VB]
Dim Start As Rom.MapCoord = _Level.StartPoint
Start.X = 15
[/VB]
_Level.StartPoint.X = 15
(Expression if a value and therefor can not be the target of an assignment.)
_Level is a struct. StartPoint is a readonly property which returns a struct. X is a read/write property which is an integer. Why would this cause an error instead of assigning the value of 15 to the property .X?
Note that the folloing code does work:
[VB]
Dim Start As Rom.MapCoord = _Level.StartPoint
Start.X = 15
[/VB]