Re: Using public members of a class inside the class
- From: "Jezebel" <warcrimes@xxxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 09:37:56 +1100
No reason why not. It's even fairly common: you have some standard function
that you use throughout the app; it's just as useful from within the module
as elsewhere; and for consistency's sake it's better, as far as possible,
always to use the same method.
You don't need the 'me', BTW. And your example looks more like a function
than a property.
"Guillermo López-Anglada" <guillermo@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:uaGfHM0DHHA.4144@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I have a class like this:
'Class module
Public Property Get GetTextFromRange() as String
'Code
End Property
Public Function ProcessText() as String
'For example:
ProcessText = Left$(Me.GetTextFromRange,5)
End Sub
'End of Class module
Is it a good practice to use public members of a class like that?
Regards,
Guillermo
.
- Follow-Ups:
- Re: Using public members of a class inside the class
- From: Guillermo López-Anglada
- Re: Using public members of a class inside the class
- References:
- Using public members of a class inside the class
- From: Guillermo López-Anglada
- Using public members of a class inside the class
- Prev by Date: Using public members of a class inside the class
- Next by Date: Re: Using public members of a class inside the class
- Previous by thread: Using public members of a class inside the class
- Next by thread: Re: Using public members of a class inside the class
- Index(es):
Relevant Pages
|