Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge and memo fields
Message
From
02/09/2001 09:39:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00551576
Message ID:
00551581
Views:
24
>I am writing a 'report' using textmege, and seeing something I have not come across yet.
>when issuing a \<> after set textmerge on.
>the contents of the memo field are display ' reported on as requested, however natural line breaks, (set noramlly with set memowidth to XX ) are no longer there.
>
>I just get the contents of the memo in one long string.
>
>is there anyway to to have set textmege produce a memo string, in using the memowidth setting ?

The problem is back, eh?
I've had trouble with this in FP2.0, when I was doing some contract generator for banks and cooperatives. The trick I used then was to re-merge the final text. In today's terms, it would be

cTxt=filetostr("merged.txt")
set text to newmerge.txt
set text on
\\{{cTxt}}
set text off
set text to

I've set textmerge delimiters to {{}} just for this occasion so they'd show up. For some reason textmerge engine doesn't do the wrap when unwrapping a memo, but does expand the {{}} embedded expressions in it; it wraps simple variables and expressions otherwise, but then doesn't expand the embedded expressions unless they are in a memo. Ergo, if you find no other fix for this, it'll have to be a two-pass operation.
Hope this works.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform