If j(i) < 1 Then m = m + j(i - 1) Else m = m + j(i - 1) - 1
Single letter variables are good for iterators, but if integer variables will involve coditions such as the statement above, better use a more descriptive variable or refactor the said line to a method with a descriptive name. I guess if you're using vb6/vba, you cannot escape from transitioning values between 0 index to 1 index conditionals.
Posted
01-08-2007 11:37 AM
by
jokiz