Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Pre-pending data to memo at print time

edited September 2002 in General
Hi all,

Using RB6.03 and D5.02Ent, I have the task of printing some memos on a very
rigidly structured form layout. In fact, I can't really afford space
for my usual section heads. Instead, I want to pre-pend the data with
a label at print-time.

For example: I have the memo field contents filled with 'Cannot find the ocean
from a boat.' I want to pre-pend 'PROBLEM: ' to that line so that it
prints out: 'PROBLEM: Cannot find the ocean from a boat.'

I tried GetMemo. Not right. I get nothing printed from the datafield that
way. I tried on print, playing with the aLines paramater. Got lots of
index out of range errors. i.e. aLines.lines[0] := 'PROBLEM: ' +
alines.lines[0];

What am I doing wrong?

Thanks in advance, GM

Comments

This discussion has been closed.