Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chr(13) problems
Message
De
27/05/2003 16:41:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Chr(13) problems
Divers
Thread ID:
00793261
Message ID:
00793261
Vues:
52
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?
Jim Philippi

quando omni flunkus moritati
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform