-
[RESOLVED] Prefixes
I was wondering if there was a right and a wrong way of showing prefixes.
Is there a convention?
I know alot of people use 3 letter prefixes. Is this the standard, if so can we create a list of them :D so me and i'm sure other people can refer to them.
or
Do prefixes not have a standard IE. can I right tableSomething instead of tblSomething and not be considered conventionally wrong?
Thanks. Emdiesse.
-
Re: Prefixes
It's just something you use for consistency. It doesn't matter as long as you're comfortable with your prefix, you can easily identify what it means and the rest of your team using the same conventions. Here's my quick list:
tbl = Table
str = String
sint = INteger (16bit)
int = Integer (32bit)
lint = Integer (64bit)
dbl = Double
txt = TextBox
lb = ListBox
lbl = Label
sql = SQL Data Object (usually followed by a Cmd or Adap or something)
obj = Object
dtm = Date/DateandTime
chr = Character
frm = Form
btn = Button
dg = DataGrid
dcm = Decimal
That's just a quick list. Some of them I make up on the spot, but those ones are pretty consistent. I also use "_" before the prefix to denote anything that's private (variables and methods).
-
Re: Prefixes
Here's the official list from MS on VB Hungarian Notation:
http://support.microsoft.com/kb/q173738/
and another link:
http://www.gregleg.com/oldHome/hungarian.html
Here's what Joel has to say on it...
http://discuss.fogcreek.com/joelonso...w&ixPost=35396
I like boo for boolean - most people do bln...
Consistency is more important ;)
-
Re: Prefixes
OK. Thanks.
I was just struggling to think of one for a sub form :P