Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text to isue
Message
From
30/04/2022 05:53:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/04/2022 14:51:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01684081
Message ID:
01684309
Views:
98
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform