Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Argument names in subs and functions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bear - 11 Oct 2007 21:16 GMT
When naming arguments for use in a sub or function, should I adhere to my
usual naming format? E.G.

Sub LOParas(ByRef rngWork As Range, strAction As String)

or is

Sub LOParas(ByRef Range As Range, Action As String)

okay?

Bear
Signature

Windows XP, Word 2000

Karl E. Peterson - 11 Oct 2007 21:22 GMT
> When naming arguments for use in a sub or function, should I adhere to my
> usual naming format? E.G.
>
> Sub LOParas(ByRef rngWork As Range, strAction As String)

I think the ghoulash in arg names is ugly and redundant.  Intellisense is there, to
tell you what type it is, so what's the point?  Make it *functionally* meaningful,
and you'll be farther ahead.

> Sub LOParas(ByRef Range As Range, Action As String)

I wouldn't use keywords as argument/variable names.
Signature

.NET: It's About Trust!
http://vfred.mvps.org


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.