Re: Making an Enum gloabl
From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 04/09/04
- Next message: Dean Slindee: "Re: How to get frmMain to load before other dependent forms?"
- Previous message: Gary Milton: "Re: Windows Login Name"
- In reply to: Sapporo: "Re: Making an Enum gloabl"
- Next in thread: Armin Zingler: "Re: Making an Enum gloabl"
- Reply: Armin Zingler: "Re: Making an Enum gloabl"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 9 Apr 2004 17:57:23 -0500
Sapporo,
I tend to prefer:
> Public Enum MyEnum
> enumval01
> enumval02
> End Enum
> Public Module modDeclarations
> End Module
As the module is NOT needed to hold the Enum declaration. Enum declarations
can exist at the Namespace level just like Class, Module, Interface, and
Delegate.
Hope this helps
Jay
"Sapporo" <sapporo.NO5PAM@shackmail.com> wrote in message
news:%23Sw2TSoHEHA.3240@TK2MSFTNGP12.phx.gbl...
> This will also make your enum global
>
> Public Module modDeclarations
> Public Enum MyEnum
> enumval01
> enumval02
> End Enum
> End Module
>
> "Chad" <chad.dokmanovich@unisys.com> wrote in message
> news:c56mi2$jkl$1@trsvr.tr.unisys.com...
> In VB6, Enums that I declare within a class as PUBLIC are know outside of
> this class. In otehr words, the enum is global and may be referenced
outside
> of the class in which it is declared.
>
> In VB.Net, a Public enum is local to the class in which it is declared or
> instances of the class or classes that inherit from the class in which the
> Enum declaration resides.
>
>
- Next message: Dean Slindee: "Re: How to get frmMain to load before other dependent forms?"
- Previous message: Gary Milton: "Re: Windows Login Name"
- In reply to: Sapporo: "Re: Making an Enum gloabl"
- Next in thread: Armin Zingler: "Re: Making an Enum gloabl"
- Reply: Armin Zingler: "Re: Making an Enum gloabl"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|