Re: VB6 Scope Issues
- From: Bob O`Bob <filterbob@xxxxxxxxxxxxxxx>
- Date: Sun, 23 Jul 2006 13:50:51 -0700
Andrew Chalk wrote:
1) What is the difference in scope of:
Public X As String
Global X As String
Anywhere where the latter is not a syntax error, there is no difference between the two.
Anywhere else (place where you can only use Public) it /is/ actually rather different
from *either* of the above.
2) What is the difference in scope of:
Private Sub S()
Sub S()
In (2): Nothing, I believe. The absence of a scope qualifier on a Sub or Function implies Private, right?
I think that's the case, but it's not something I'm likely to ever bother to test.
VB has, over the years, given me a serious distaste for defaults.
Bob
--
.
- Follow-Ups:
- Re: VB6 Scope Issues
- From: Andrew Chalk
- Re: VB6 Scope Issues
- From: Andrew Chalk
- Re: VB6 Scope Issues
- References:
- VB6 Scope Issues
- From: Andrew Chalk
- VB6 Scope Issues
- Prev by Date: VB6 Scope Issues
- Next by Date: Re: VB6 Scope Issues
- Previous by thread: VB6 Scope Issues
- Next by thread: Re: VB6 Scope Issues
- Index(es):
Relevant Pages
|