>Execute the following code:
>
>lcTest = " 0123"
>lnTest = VAL(lcTest)
>lcTest = ALLTRIM(STR(lnTest))
>lnTest = VAL(lcTest)
>?"|" + STR(lnTest) + "|"
>
>
>Shouldn't the result be |0123|? I can't see how it remains | 0123| after I change it to a string, perform an ALLTRIM on it, and then change it back to a numeric value.
Nope, no bug. STR() defaults to a string that's 10 characters wide, right justified (left space padded).