I wouldn't have thought to face this rather disturbing situation. It seems that in some cases properties are not properly recognized. Or I miss the trick:
Code: Select all
type UDT extends OBJECT
declare property Prop() as integer
property UDT.Prop() as integer
Prop = 1
dim as UDT uuu
type UDT2 extends OBJECT
declare property Prop2(byval as integer)
declare property Prop2(byval as integer) as integer
property UDT2.Prop2(byval z as integer)
property UDT2.Prop2(byval z as integer) as integer
Prop2 = 2
dim as UDT2 vvv
In the UDT2, I added the Prop3 SETTER because the compiler was complaining about it but it the GETTER with the parameter Z passed that I need to be called here.
The error message that in any case I can not understand is:
warning 13(0): Function result was not explicitly set
PROP2 = 2 is actually the function result.
So it's tricky. Maybe I have to use the version returning Byref, I don't know. If someone has any idea...