Post

 Resources 

Console


Class stuff... Rag on a Stick (3 replies, 0 views) (2000-Oct-25)
-
Ok, here is the code for part of my class: Private mvarSrcRect As Rect Public Property Set SrcRect(ByRef vData As RECT) 'used when assigning an Object to the property, on the left side of a Set statement. 'Syntax: Set x.SrcRect = Form1 Set mvarSrcRect = vData End Property Public Property Get SrcRect() As RECT 'used when retrieving value of a property, on the right side of an assignment. 'Syntax: Debug.Print X.SrcRect Set SrcRect = mvarSrcRect End Property But it won't compile, error message: "Definitions of property procedures for the same property are inconsistent or contain optional parameters or a ParamArray". Now this code is made totally by the Class Builder, and the only thing I have changed is the ByVal in the property set to a ByRef (I didn't get an error, but I assumed I would need to do this as it is a UDT which can't be passed ByVal) What is wrong with it (And I did read the help thing, and it sounded like everything was ok) Any help?


-
Back to Forum

A couple thoughts MetalWarrior (0 replies) (2000-Oct-25)
RE: Class stuff... rolly (1 reply) (2000-Oct-25)
Thank you both *nt* Rag on a Stick (0 replies) (2000-Oct-26)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 82 visitors within the last 20 minutes
RSS News Feed