property

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

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
 
* "Frank said:
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.

Add 'Imports WindowsApplication1.ClassA.X' on top of your file.
 
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
 
Back
Top