Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chr(13) problems
Message
De
27/05/2003 16:45:11
 
 
À
27/05/2003 16:41:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00793261
Message ID:
00793264
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>I have several methods using StrToFile( ). All was fine but suddenly the chr(13) has changed from an ascii carriage return to some sort of control code showing itself as a dark rectangle in notepad. I’m not aware of any VFP7 setting I’ve changed that would cause this, nor am I able to find anything in the help files. Here’s a sample:
>
STRTOFILE("Here is some text", "d:\Jim.txt")
>STRTOFILE( CHR(13) + " Here is some text ", "d:\Jim.txt",.t.)
>STRTOFILE( CHR(13) + " Here is some text ", "d:\Jim.txt",.t.)
>STRTOFILE( CHR(13) + " Here is some text ", "d:\Jim.txt",.t.)
>
>STRTOFILE("Here is some text ", "d:\Jim2.txt")
>STRTOFILE( CHR(10) + " Here is some text ", "d:\Jim2.txt",.t.)
>STRTOFILE( CHR(10) + " Here is some text ", "d:\Jim2.txt",.t.)
>STRTOFILE( CHR(10) + " Here is some text ", "d:\Jim2.txt",.t.)
>
>When I look at the resulting file in TSE Pro (my text editor) it interprets the returns correctly but NotePad displays it as one long line with black bars where the returns should be.
>
>I am working on a Novell network and registry settings have been slammed without warning or conformation from the IS folks. Anyone know what I can do to get this back to default behavior?

Notepad requires both CHR(13)+CHR(10) (in that order) to show correctly.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform