Pre-pending data to memo at print time
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
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
This discussion has been closed.
Comments
For an example, see the main reports demo # 33.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
The only way I know is that you take a normal memo and fill it with
your static text and the value from the database.
Gruß aus den Bergen
Günter