Results 1 to 11 of 11

Thread: Prefix (Any)

  1. #1
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Prefix (Any)

    Hi All

    Table = tbl
    Query=qry
    Form=frm

    OptionButton=?

    Cheers

    Jerry
    Jerry

  2. #2
    3 Star Lounger MacroAlan's Avatar
    Join Date
    Feb 2003
    Location
    St Louis, Missouri, USA
    Posts
    254
    Thanks
    6
    Thanked 1 Time in 1 Post

    Re: Prefix (Any)

    I was taught and generally use

    OptionButton=opt
    Label=lbl
    CommandButton=cmd
    Alan

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Prefix (Any)

    Would anyone have a more complete listing (or a link that has one)?
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  4. #4
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prefix (Any)

    Here's a link to the Reddick naming conventions commonly used in VB/VBA: http://www.xoc.net/standards/
    Charlotte

  6. #6
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Prefix (Any)

    Thanks.

    I must say many of them lead to long prefixes.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Prefix (Any)

    If you're the head of your team, make up anything you like and force the others to go along!

    Just kidding.

    Mostly.

    But seriously, these are aides to memory and debugging, not laws or even compiler requirements. While recognizing that the proposals of others may have been developed over years of struggle, if they are too verbose and hamper getting real work done, you certainly can't be expected to use something that doesn't fit your needs and work style.

    Easy for me to say. All my projects are solo. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prefix (Any)

    I've found that I prefer the 3 character prefixes originally proposed by Leszynski and Reddick jointly. Reddick seems to like some longer ones, but Stan Leszynski stuck faithfully to 3 character tags, and I use his scheme. I find it easier to pick out datatypes with in "int" prefix than those with an "i", etc. Plus what do you do with things like "p"? Is that p for parameter, p for property or p for phooey?? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Charlotte

  9. #9
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prefix (Any)

    And if they're too skimpy, you get the work done but sweat and swear when you have to go back and debug it. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I'd rather save the strain at the beginning.
    Charlotte

  10. #10
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Prefix (Any)

    I'v e started out with single character prefixes, but indeed am now inclined towards the three letter method.

    I don't like adding others though. If I want to denote a collection, I simply pluralise the name itself:

    Dim wshWorksheets as Worksheets

    Like Jeff I solo on most of my projects. So it is up to me to decide.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  11. #11
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prefix (Any)

    I solo on many of mine, but I keep in mind that someone else may wind up supporting and maintaining anything I build. To that end, I make the naming conventions pretty ... conventional! <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I also work with several other developers and projects get passed back and forth, so the coding styles can't be radically different or someone (usually the boss) starts taking exception to them. When you're trying to track down an overflow error, it sure helps to be able to recognize that you're trying to stuff the results of multiplying or dividing singles into an integer, simply by reading the code. <img src=/S/yep.gif border=0 alt=yep width=15 height=15>

    Of course getting everyone to use the same standards is a lot like herding cats, but as long as we're generally consistent, we can live with things like boo or bool or bln or f used as the prefix for a boolean ... often in the same routine. <img src=/S/crazy.gif border=0 alt=crazy width=15 height=15>
    Charlotte

Posting Permissions

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