Home All Groups Group Topic Archive Search About
Author
12 Apr 2005 10:50 PM
Ilyan
Is there any way of sorting items in Enum?
For example, let's take this declaration:
Enum SecurityLevel
   IllegalEntry = -1
   MinimumSecurity = 0
   MaximumSecurity = 1
End Enum
When I type securityLevel and press dot, I want them to be displayed in the
order I declared them above, not alphabetically.
Thanks.

Author
12 Apr 2005 11:39 PM
Rob Nicholson
> When I type securityLevel and press dot, I want them to be displayed in
the
> order I declared them above, not alphabetically.

I suspect not...

I came across a real annoyance in intellisense today. We've got a situation
where two methods are found called CreateObject and CreateObjectTree. When
you type c r e a t e o b intellisense comes up with the second one -
CreateObjectTree. Now whilst this is a distinct annoyance (I think it should
display the first) what's wrong is that even if you press up-arrow to select
the item above (CreateObject) it *still* inserts CreateObjectTree. You can
to accept this and manually delete the Tree bit.

Rob.