Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text to isue
Message
From
06/06/2022 08:20:03
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
30/04/2022 05:53:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01684081
Message ID:
01684429
Views:
125
>>I All,
>>
>>Has somebody an idea why
>>
>>lcText  = ''
>>
>>lcField = 'myfield'
>>luValue = 'myfaluve      '+0h0d0a+ '     '+0h0d0a+ '     '+0h0d0a+ '     '
>>*luValue = 'myfaluve           '
>>
>>TEXT TO lcText TEXTMERGE flags 1+2 PRETEXT 1+2 additive
>><<>>			<<'<' + lcField + '>'>><<luValue>><<'</' + lcField + '>'>>
>>ENDTEXT
>>Clear
>>?lcText
>>
>>removes the trailing spaces before the closing tag? Looks like a bug to me.
>>
>>This works as expected
>>
>>lcText  = ''
>>
>>lcField = 'myfield'
>>luValue = 'myfaluve      '+0h0d0a+ '     '+0h0d0a+ '     '+0h0d0a+ '     '
>>*luValue = 'myfaluve           '
>>
>>TEXT TO lcText TEXTMERGE flags 1+2 PRETEXT 1+2 additive
>><<>>			<<'<' + lcField + '>'+luValue+'</' + lcField + '>'>>
>>ENDTEXT
>>Clear
>>?lcText
>>
>>
>>The problem is from FoxBin2PRG
>>
>>Lutz
>
>Aren't you asking explicitly for it to remove the leading spaces in textmerge? (PRETEXT 1+2). In the latter, you are placing it as a single value. Remove the pretext and you would be good (actually I would use \ and \\ in situations like this).
>
>Cetin

Hi Cetin,
Sorry for being late,

It removes the wrong spaces - not those in from the line, but those included with textmerge. This is unexpected.
I fixed it, but I'm curious
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
Reply
Map
View

Click here to load this message in the networking platform