Hey,
In my quest for writing better code, as I’m no real programmer, I didn’t find the exact information about the following… In case the answer on either of these questions is ‘yes’, I’ll be very glad with any suggestion, link to a thread, site or white paper where this is described properly…
1. Suppose you have a procedure fed with one or more parameters. Are there any disadvantages if I use these parameters directly in code, instead of assigning them first to explicitly declared variables? I figured out that you loose performance when you don’t do this with form controls/fields, but I guess chances are small that this applies to parameters too.
2. Are there any disadvantages if I use the function name also in intermediate steps during the procedure, instead of using variables as long as possible, and the function only in the last step?
For example:
Public Function function1(strName as String) as String
function1 = function2(strDirName)
function1 = LCase(function1)
End Function