<snip>
>If you agree that VFP should optimize STR(), I think you will also agree that VFP should optimize other string functions (LEFT(), REPLICATE(), LEFT(), RIGHT(),...) when the parameter determining the length of the resulting string is a numeric literal. Therefore, the bug in VFP9 is not limited to STR().
Hi Ben,
The length of the resulting string returned by LEFT() and RIGHT() functions isn't determined by the second parameter only. IOW, a numeric literal as the second parameter determines only max lenght of the result and doesn't guaranty that result will have fixed lenght.
--sb--