Using Crystal Reports 8.5
Need to export number fields in fixed length format to an ascii file. The formula works for text, but generates
a syntax error for number fields.
Formula is from Crystal's tech support. c2005609.
Detail of formula
numbervar requiredlength:=20;
numbervar currentlength:=length ({LACTG04.AG4_TRANS_AMOUNT});
if requiredlength < currentlength then {LACTG04.AG4_TRANS_AMOUNT}[1 to requiredlength]
else {LACTG04.AG4_TRANS_AMOUNT} + replicatestring("",requiredlength-currentlength)
Need to export number fields in fixed length format to an ascii file. The formula works for text, but generates
a syntax error for number fields.
Formula is from Crystal's tech support. c2005609.
Detail of formula
numbervar requiredlength:=20;
numbervar currentlength:=length ({LACTG04.AG4_TRANS_AMOUNT});
if requiredlength < currentlength then {LACTG04.AG4_TRANS_AMOUNT}[1 to requiredlength]
else {LACTG04.AG4_TRANS_AMOUNT} + replicatestring("",requiredlength-currentlength)