Enum sort

  • Thread starter Thread starter Ilyan
  • Start date Start date
I

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.
 
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.
 

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