Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge Pretext bug?
Message
From
04/01/2011 03:18:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
04/01/2011 03:09:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01494505
Message ID:
01494559
Views:
59
Hi Mark,

maybe you could do a simple
lcText = chrtran(m.lcText,chr(10)+chr(13),'')
* or for VFP 9.0
lcText = chrtran(m.lcText,0h0D0A,'')
instead of reworking all?


>Thanks Naoto, that does get rid of the space. I think I'll do it that way rather than use TEXT TO, and precede each line with the \\. Thanks again!
>
>>>Is this a bug? I'm outputting html and do not want any pretext or linefeeds. It seems VFP inserts a space between lines if the PRETEXT is set to 15 (which should be no pretext)? The code below outputs "line1 line2" (a space in between). Thanks!
>>>
>>>TEXT TO m.lcText TEXTMERGE NOSHOW PRETEXT 15
>>>line1
>>>line2
>>>ENDTEXT
>>>? m.lcText
>>>
>>Hmm... It probably depends on the interpretation of what that newline between the TEXT...ENDTEXT represents.
>>
>>Perhaps the following might give you desired results?
>>
SET TEXTMERGE TO MEMVAR lcText NOSHOW
>>SET TEXTMERGE ON
>>\\line1
>>\\line2
>>SET TEXTMERGE OFF
>>SET TEXTMERGE TO
>>? m.lcText
>>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform