You formula is returning the text reformatted at 65 lines per (though you might use chr(13) instead, or chr(10)&chr(13).
And why are you usaing a shared variable, are you passing values to/from main/subreports, or?
Try this formula:
shared numberVar RowsThisRecord;
stringVar Result;
numberVar RowCount := int((len({MEDICAL_REPORT_OBJECT.MRO_TEXT}) / 65)+0.99999);
RowsThisRecord := RowCount;
numberVar i;
for i := 1 to RowCount do
(
Result := Result + mid({MEDICAL_REPORT_OBJECT.MRO_TEXT},(i*65) - 64, 65) + chr(10);
);
"Rows this record: " & RowCount & chr(13) & Result;
You can eliminate the RowsThisRecord variable, it isn't doing anything.
-k