Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't get rid of strange character in M field.
Message
De
14/03/2003 23:48:03
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can't get rid of strange character in M field.
Divers
Thread ID:
00766126
Message ID:
00766126
Vues:
85
Hi All

There is a strange character in mytable.memo, and it won't go away. It looks and feels like an extended ASCII character. Issuing a STRTRAN(myvar,CHR(x)) does clear it from a variable string (lcvar = mytable.memo). But after issuing a REPLACE WITH, the character is back!

The field data is from a text.txt file. Two different approachs have been tried to write to the table. First by Append Memo. Because of this problem, I also tried using FILETOSTR() and REPLACE WITH with some string manipulation in between; to attempt to remove the character.

When you look at the memo field (Browse) it looks like an extended ASC character and ASC() does return a value, but not always the same ASC() value. The only other clue is that the character is the last one in the string. But even in this case, a lcvar=LEFT(lcvar,LEN(lcvar)-1) followed by REPLACE WITH still left the character in the memo field. The table's code page is Windows ANSI(1252).

I Dunno. Sure hope you do.

Thanks
Don Lowrey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform