Enum case format in vba ide

D

dymondjack

This is a minor annoyance, but if anyone knows how to fix it, that would be
great.

Access 2003 (11.5614.5606), XP Pro and Vista HomePremium

When using enums (and only enums, for whatever reason), I need to type the
case exact where I refer to the constant in the code, otherwise it reformats
the declaration to whatever case format I type in my code.

For example, lets say I want an enum for performing some events in the case
in an error:

Public Enum eErrEvent
dsErrEventDoNothing = 0
dsErrEventQuitApp = 1
dsErrEventResetWorkspace = 2
dsErrEventResetUser = 3
End Enum

With any other declarations, I can type the values in lower case in the
code, and they correct according to their declarations. Not so with enum
values. If I type

Case dserreventdonothing

and hit enter, the declaration portion of the enum value changes to whatever
I typed, instead of the usual other way around.

This is hardly a major issue, but is definately an annoyance. I have a
habit of verifying variables/functions etc during use by typing them in lower
case and making sure the case format changes to what they were declared at
when I exit the line (with the use of Option Explicit, of course).

Maybe it's just an IDE bug and I'll have to continue to deal with it...

thanks for any thoughts
--
Jack Leach
www.tristatemachine.com

- "Success is the ability to go from one failure to another with no loss of
enthusiasm." - Sir Winston Churchill
 

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

Top