Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Well known bug or? Gather Name and Codepage
Message
From
05/01/2006 15:58:48
 
 
To
05/01/2006 11:35:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01083591
Message ID:
01083784
Views:
10
I must be missing something. I have a field that I store encrypted data in and we use SET NOCPTRANS prior to pulling/storing data to it. Doesn't that work?


>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?
>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform