Private Properties Do Not Permit Me-Dot notation 
Author Message
 Private Properties Do Not Permit Me-Dot notation

I find it slightly disturbing the you cannot use dot notation when
referring to private properties within a class.  For example:

If a class has the following private properties:

Private Property Get CallCount() as Long
   Static x&
   x& = x& + 1
   CallCount = x&
End Property

Public Property Get Foo() as String
  ' This generates an error
   Foo = Format$(Me.CallCount,"000")

 ' but this does not
  Foo = Format$(CallCount,"000")
End Property



Wed, 09 Aug 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Bang vs. Dot Notation

2. private and not private

3. UML notation for field/property??

4. reflection of a private property WITH parameters?

5. Private and Public Properties of type Array

6. Best Practice: Referring to Public Properties or Private Variables

7. How: Public Read Only / Private Write Property?

8. Public and private properties URGENT

9. Public and private properties URGENT

10. How to make a array an private property???

11. Placing an control in a class module as public or private property

12. Can a class module have private properties?

 

 
Powered by phpBB® Forum Software