06-16-2003, 03:09 AM
Quote:I'd never think of doing it like that.... i'd use len to check the length and then see how many zeroes I need.
That's what my code example is doing. The idea is to do it all on one line of code.
Yes, to be more elegant, you could do a CASE on the length. But that would be several lines of code. My theory is that the more lines of code to do something, the more chance of bugs. Within reason of course, I don't mean to have one line of code with more than 2 or 3 operations that spans more than 100 characters just to get it all on one line.
Why don't you show us your example for doing it.
*****