• 0

Code guidline / code convention / naming conventio


Question

looking for something like a code guidline....

i.e. that a TextBox should have the prefix: txt

TextBox --> txt i.e. txtCustomer

Label --> lbl i.e. lblCustomer

String --> str i.e. strCustomer

bool --> boo i.e. booIsValide

is something like that anywhere available?

gicio

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I don't konw of any standard convention. Even with prefixes its debatle whether to use _ of captials or just long words or whatnot. It depends on your company and school or whatnot.

Link to comment
Share on other sites

  • 0

I use my own.

s = String

l = Long

i = Intiger

b = Boolean

h = Handle

obj = Some Object

I don't like too long prefixes... like "boo", that is redundant.

I use txt, lbl, img, pic and on...

Link to comment
Share on other sites

  • 0
looking for something like a code guidline....

i.e. that a TextBox should have the prefix: txt

TextBox  -->  txt   i.e. txtCustomer

Label    -->  lbl   i.e. lblCustomer

String   -->  str   i.e. strCustomer

bool     -->  boo   i.e. booIsValide

is something like that anywhere available?

gicio

MSDN has a good one that I use all the time. check it out here. http://msdn.microsoft.com/library/default....conventions.asp

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.