General style question

kweaver

Well-known Member
Joined
May 8, 2018
Messages
1,039
Office Version
365, 2010
Wouldn't it be advisable to avoid using a lower case "L" for, say, a loop when it (l) looks too much like the number 1?
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Kenneth Hobson

Well-known Member
Joined
Feb 6, 2007
Messages
3,092
Code does not care. When posting to a forum or your own code, one might get confused. I tend to avoid it myself. From old Fortran coding methods, we used i, j, k as integer counters. When I get to that one, I use, m, or ii, jj, kk, etc. It would be more clear if you dimmed it as L, so that case would be retained.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,099,142
Messages
5,466,921
Members
406,509
Latest member
David504

This Week's Hot Topics

Top