Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cut and Paste Causing Memo Corruption
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00956032
Message ID:
00956254
Vues:
10
just a guess -- I've seen "smart quotes" do this to a couple of different applications, not necessarily Fox. I think the offending ASCII values are 147 and 148, but there are a few other culprits anyway.

You can try chrtran()'ing for all the ones you know about, making reasonable substitutions, and add to the strings as you find out about them.

Something like this:
#DEFINE EDS_TEXT_BADCHARS CHR(145)+CHR(146)+ ;
                          CHR(147)+CHR(148) + ;
                          CHR(0)+CHR(26)

#DEFINE EDS_TEXT_CHRTRANS "''" + ;
                          [""] + ;
                          SPACE(2)

lcValue = CHRTRAN(lcValue,EDS_TEXT_BADCHARS,EDS_TEXT_CHRTRANS)  

REPLACE Whatever WITH lcValue
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform