Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crypto and field widths
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00778530
Message ID:
00778538
Vues:
16
>I'm finding that if I encrypt a 10 character string and place the result into a 20 character field - when I later decrypt the string I gat garbage characters after the (properly) decrypted string!
>
>Am I correct in assuming I either have to padr the string before encryption, or rtring the encrypted string before decryption?
>
>TIA

Yes. < s >

Since VFP fields are fixed length, you need to either PADR the string to encrypt, or you need to remove the trailing spaces before you attempt to decrypt the string.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform