VB6 Editor changing case of variable names

前端 未结 10 935
迷失自我
迷失自我 2020-12-08 13:24

I\'m not much of a Visual Basic person, but I am tasked with maintaining an old VB6 app. Whenever I check out a file, the editor will replace a bunch of the uppercase varia

10条回答
  •  攒了一身酷
    2020-12-08 13:46

    Prevent VB6 auto correct For enum values

    As my general rule I declare constants in UPPERCASE. Since enums are essentially constants I like to declare values for enums in UPPERCASE as well. I noticed the VB6 IDE also auto corrects these.

    I found the IDE does not correct these values when using numbers and underscores '_' in the value names.

    Example:

    Public Enum myEnum
      VALUE      'Will be corrected to: Value
      VALUE1     'Will not be corrected
      VALUE_     'Will not be corrected
    End Enum   
    

    I do not know if this works in general and if this extends to naming/auto correction of variable names.

提交回复
热议问题