Re: property

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ernest Morariu (ernest_at_gesora.com)
Date: 06/15/04


Date: Tue, 15 Jun 2004 09:51:09 +0200


> Is there a way to lose the prefix classA.x? Or even give completely other
> informational names for the enum.

You can lose the "ClassA" prefix defining your enum out of the class ClassA.

Ernest

"Frank" <frank@frank.com> wrote in message
news:cakgl9$70t$1@news2.tilbu1.nb.home.nl...
> Hello,
> question about the values for a property. I have a class with an enum and
> property:
> classA
> public enum x as short
> a
> b
> c
> end enum
>
> property xy() as x
> ..
> end prop
>
> When I dim a new class and fill the property:
> dim inst as new classA
> inst.xy=
>
> After typing the equal sign (intellisense) I see the possible prop values
> listed as:
> classA.x.a
> classA.x.b
> classA.x.c
> Is there a way to lose the prefix classA.x? Or even give completely other
> informational names for the enum.
> Thanx
> Frank
>
>
>



Relevant Pages

  • Re: property
    ... > public enum x as short ... > dim inst as new classA ... > After typing the equal sign I see the possible prop values ...
    (microsoft.public.dotnet.languages.vb)
  • property
    ... public enum x as short ... dim inst as new classA ... After typing the equal sign I see the possible prop values ...
    (microsoft.public.dotnet.languages.vb)
  • Re: property
    ... Don't make the enum a property of the class, just make it public and in the ... > dim inst as new classA ... > After typing the equal sign I see the possible prop values ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Iterating through an enum???
    ... Like it, however this is a prefix ++, no? ... had the members of the enum as its values, since I *think* that you are ... guaranteed that it will iterate over the set with monotonically increasing ... > I'm Schobi at suespammers dot org ...
    (microsoft.public.vc.language)
  • Re: release build failed!!!
    ... others that you should prefix your names with something specific to the ... All errors are pointing to a single statement, ... static enum ...
    (microsoft.public.vc.mfc)