Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chrtran and carriage returns
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00631191
Message ID:
00631514
Vues:
62
>>You're right of course. The reason why it doesn't show with CHRTRAN() is that the "|" character is only replaced with CHR(13).
>
>Why is it that a chr(13) only shows the line after the cr?
>
>
?  "abc" + Chr(13) + "123"
>** displays
>123
>
>?  "abc" + Chr(10) + "123"
>** displays
>abc
>123
>
>?  "abc" + Chr(13) + "123" + Chr(13) + "efg"
>** displays
>efg &&and some wierd char
>
>?  "abc" + Chr(10) + "123" + Chr(10) + "efg"
>** displays
>abc
>123
>efg
>
>>
>>>>you don't see the result on the screen with the ? command.
>>>
>>>How come? It shows on screen if you use strtran?

I think that has something to do with the fact the chr(13) does a carridge return ie put the cursor at the beginning of the line (ready to overwrite) while it the chr(10) line feed that actually advances the cursor to the next line.
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform