ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Class Module Question (https://www.excelbanter.com/excel-programming/444043-class-module-question.html)

Doug Maddox

Class Module Question
 
I have a simple class module with a property X as follows:
Private cX as Integer
Property Get X() As Integer
X = cX
End Property
Property Let X(xVal as Integer)
cX = xVal
End Property

When I view an object of this class in the Locals window, both X and
cX show up as properties of the object. Is there a way to make cX
invisible to the Locals window?

Thanks,
Doug

Bob Phillips[_4_]

Class Module Question
 
Don't think so Doug, it is something that has been bugging me for years

HTH

Bob

"Doug Maddox" wrote in message
...

I have a simple class module with a property X as follows:
Private cX as Integer
Property Get X() As Integer
X = cX
End Property
Property Let X(xVal as Integer)
cX = xVal
End Property

When I view an object of this class in the Locals window, both X and
cX show up as properties of the object. Is there a way to make cX
invisible to the Locals window?

Thanks,
Doug



All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com