I know this used to be all the rage in VB programming, but that was mostly cargo-cult. My major issue with it is that it looks like a lame attempt at Systems Hungarian notation. I'd say that's more a reflection on your choice of a font for your editor, but this is still a valid concern. Roland says one problem with it is that it can be difficult to distinguish from the digit 1 or a capital I. in a COM server.)Īs others have pointed out, l is a rather poor choice for a parameter name. (But it probably is what you want for strings, unless passing them out-of-process, e.g. It is certainly not what you want for primitive types like Long. ByRef is actually a perverse choice for the default, since it is almost never what you want. This should have been the default, but it wasn't in classic COM-based VB, so you need to write it out. There are only two things I would change, stylistically speaking:Įxplicitly pass input parameters by value. The code you have works, and is very nicely-formatted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |