confusion123
Active Member
- Joined
- Jul 27, 2014
- Messages
- 400
Is it good practice NOT to declare variables publically but instead define a class?
So in place of this in a standard module:
use this in MyClass
but I still need to add this in a standard module:
Thanks
So in place of this in a standard module:
Code:
Public FileNumber As Integer
use this in MyClass
Code:
Private mintFileNumber As Integer
Public Property Get FileNumber() As Integer
FileNumber = mintFileNumber
End Property
Public Property Let FileNumber(ByVal FNumber As Integer)
mintFileNumber = FNumber
End Property
but I still need to add this in a standard module:
Code:
Global MyFileNumber As MyClass
Thanks