Results 1 to 2 of 2

Thread: Naming Conventions

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Naming Conventions

    I was just curious which type of naming conventions is most widely used, and most readable. I know this can be a personal preference but I was just curious how people keep local,modual,class variables identifiable.


    I ask because I am looking for a change, I have been using "Polish" Notation but want to see what else is out there.


    Thanks

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Naming Conventions

    For variables I use..

    strVarname - String
    lngVarname - Long
    intVarname - Int
    dblVarname - Double

    And about Global, Modular and Local:

    Example with String: (no matter if its inside a Form, a Module or a Class)
    lstrVarname - Local string variable
    mstrVarname - Modular string variable
    GstrVarname - Global string variable

    Global Const string:
    GCnstStrVarname

    Forms, Modules and Classes: (about the Names to use)
    FrmFormname (Forms)
    ModModName (Modules)
    ClsClassName (Classes)

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