Consulting

Results 1 to 2 of 2

Thread: How do you format your flags?

  1. #1
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location

    Question How do you format your flags?

    I've seen a lot of people's code who put their flags in all caps. I usually use psuedo-Hungarian, so I don't do that. I'm curious though to hear the perspective of the all-cappers. What's the advantage?

  2. #2
    VBAX Mentor
    Joined
    Sep 2004
    Location
    Nashua, NH, USA
    Posts
    489
    Location
    Quote Originally Posted by xCav8r
    I've seen a lot of people's code who put their flags in all caps. I usually use psuedo-Hungarian, so I don't do that. I'm curious though to hear the perspective of the all-cappers. What's the advantage?
    Choose whateve naming style you wish, there's no "right" way.

    You see flags all upper case because many/most flags have merely been copied from win32api.txt, or C header files, or derivatives thereof, and it has become a de facto use.

    The case does matter in languages other than VB. Other languages are case sensitive, so folkes tend to leave the case upper because ... [fill in using 32 words or less].

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •