Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behavior with chr(10)
Message
De
18/01/2023 00:07:04
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
17/01/2023 16:03:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01685827
Message ID:
01685831
Vues:
41
>Hello all,
>
>I have this following code
>
>I("Question") + ": " + ALLTRIM( Text1) + CHR( 10) +;
>I("Answer") + ": " + ALLTRIM( Text2) + CHR( 10)
>
>i Is a function to get the multilingual string that correspond to what is inside the quotes
>
>When text1 doesn't have a lot of characters then the result is as expected meaning that the output is like this
>
>Question : Year
>Answer : 2023
>
>The weird thing is that if Text1 has many characters the output is like this
>
>Question : Many characters Answer : 2023
>
>What happened to chr(10)?
>
>Update
>Should I always have a chr(13) + chr(10)?
>
>Update #2
>I just tried adding a chr(13) before the chr(10) and I have the same problem :-(

Is there a distinct number of chars where the behaviour switches? Is it somehow related to SET MEMOWIDTH?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform