>>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.
OffThere is no place like [::1]