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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top