Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text to isue
Message
De
06/06/2022 08:20:03
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
30/04/2022 05:53:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01684081
Message ID:
01684429
Vues:
127
>>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform