Just curious as to what might be causing this and if anyone else has noticed this behavior. Given the following code for a fixed length field:
NumberVar reqlength:=9;
NumberVar currlength:=0;
if currlength < reqlength then
replicatestring(" ",reqlength - currlength)
else
""
If I use any character other than " ", it produces the desired results, that is, it produces 9 of whatever is there. If I use a space, it produces 10 of them, not nine. This seems to happen in around the same area of a file, namely, somewhere around the 75-100 character area.
Does anyone have any light they can shed on this EXTREMELY frustrating behavior? I've seen this on several reports and space(9) produces similar results, though not as easily detected.
Thank you,
Darrin
NumberVar reqlength:=9;
NumberVar currlength:=0;
if currlength < reqlength then
replicatestring(" ",reqlength - currlength)
else
""
If I use any character other than " ", it produces the desired results, that is, it produces 9 of whatever is there. If I use a space, it produces 10 of them, not nine. This seems to happen in around the same area of a file, namely, somewhere around the 75-100 character area.
Does anyone have any light they can shed on this EXTREMELY frustrating behavior? I've seen this on several reports and space(9) produces similar results, though not as easily detected.
Thank you,
Darrin