|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What is the correct case convention for Set?I looked at MSDN and a book and both described the naming convention for
parameters should be camel style. The book used camel, except for Set (ByVal Value as ...) There it always used an uppercase V What is the correct convention for Set? Anything special if the name is Value. Thanks " **Developer**" <REMOVEdevelo***@a-znet.com> schrieb: There is no correct naming. It simply depends on which naming convention >I looked at MSDN and a book and both described the naming convention for >parameters should be camel style. > > The book used camel, except for Set (ByVal Value as ...) > > There it always used an uppercase V > > > What is the correct convention for Set? you are following. If you are using the .NET Framework's naming convention, the parameter should be named 'Value' (camel case for method parameters). In VB 2005 the parameter is named 'value' opposed to 'Value' in VS.NET 2002/2003 (unfortunately, because I use my own convention...). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> I should have written: "correct by the .NET Framework's naming "convention
rather then: "correct convention" you said: "If you are using the .NET Framework's naming convention, the parameter should be named 'Value' (camel case for method parameters)." Anyway, my confusion must stem from the definition of camel I believe "newColorValue" is camel. Shouldn't it be "value" or is one word capitalized? Thanks again Show quoteHide quote >> >> What is the correct convention for Set? > > There is no correct naming. It simply depends on which naming convention > you are following. If you are using the .NET Framework's naming > convention, the parameter should be named 'Value' (camel case for method > parameters). In VB 2005 the parameter is named 'value' opposed to 'Value' > in VS.NET 2002/2003 (unfortunately, because I use my own convention...). > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> " **Developer**" <REMOVEdevelo***@a-znet.com> schrieb: Yes, that's camel case.> Anyway, my confusion must stem from the definition of camel > I believe "newColorValue" is camel. > Shouldn't it be "value" or is one word capitalized? According to the .NET Framework naming guidelines it should read 'value'. VS 2005 names the parameter 'value' by default. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> thanks
Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:eCPugwbIGHA.2628@TK2MSFTNGP15.phx.gbl... >" **Developer**" <REMOVEdevelo***@a-znet.com> schrieb: >> Anyway, my confusion must stem from the definition of camel >> I believe "newColorValue" is camel. > > Yes, that's camel case. > >> Shouldn't it be "value" or is one word capitalized? > > According to the .NET Framework naming guidelines it should read 'value'. > VS 2005 names the parameter 'value' by default. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Show Modal, then Again
TopMost without SetFocus Get associated icon for a file A question about finding class methods in the Help Assigning a Value to a Structure Pointed to by a Tag ? VB.NET profiler DUMB question about IndexOf Listbox idiotic example progress bar right to left Importing XML File into an Empty Access Table |
|||||||||||||||||||||||