Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't get rid of strange character in M field.
Message
De
15/03/2003 07:23:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/03/2003 23:48:03
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00766126
Message ID:
00766159
Vues:
27
>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

This might be some sort of corruption. Try to copy to another file (COPY TO).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform