Results 1 to 4 of 4

Thread: [*resolved] should I capitalize CONSTANTS??

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Talking [*resolved] should I capitalize CONSTANTS??

    I remember every book about vb6 or c++ capitalized constants. But I think I read something before that said we shouldn't do this in .NET for whatever reason.
    So what do you do? do you capitalize constants? it wouldnt mather anyways
    Last edited by MrPolite; Jan 20th, 2003 at 04:45 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Yes you should.
    Dont gain the world and lose your soul

  3. #3
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Thumbs up

    I agree.

    And it helps to put underscores between words.

    VB Code:
    1. Public Const REGISTRY_PATH = "Software\Test\Hiccup"
    2. Public Const NONE_ENTERED = "None Entered"
    3. Public Const NULL_DATE = "01/01/1753 12:00:00 AM"
    4. Public Const SEASON_W = "Winter"
    ~Peter


  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    tnx
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

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



Click Here to Expand Forum to Full Width