Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chrtran and carriage returns
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00631191
Message ID:
00631514
Views:
60
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform