Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Well known bug or? Gather Name and Codepage
Message
 
 
À
05/01/2006 11:35:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01083591
Message ID:
01083600
Vues:
7
You should use character/binary fields to avoid code page translations.

>I using Cipher.FLL to encode string.
>I using next simple code for example
>
>SCATTER NAME loData MEMO BLANK
> loData.Field = ENCRYPT(string,password)
>APPEND BLANK
>GATHER NAME loData MEMO
>
>?ENCRYPT(field,password)  &&- return bad string, with unknown characters
>
>
>
>Then another way
>
>

>
>SCATTER NAME loData MEMO BLANK
> loData.Field = ENCRYPT(string,password)
>APPEND BLANK
>AMEMBERS(laMbr,loData)
>FOR lni=1 TO ALEN(laMbr,1)
>  lcPropName = laMbr[lni]
>  REPLACE &lcPropName WITH loData.&lcPropName
>ENDFOR
>
>?ENCRYPT(field,password) &&- return correct value
>
>
>Question: Is it well know bug when GATHER NAME wrong play with codepage when update field?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform