dardapu
Programmer
- Sep 10, 2002
- 67
I need to coordinate two applications, oen in foxpro 2.6 D.O.S and another in VFP3 (I use this version since I need a small application). The problem is I believe... of platform.
Under D.O.S executes an encriptation routine
.....................................
procedure encryp
parameter value
largo=len(valor)
factor=int(largo*2/3)
encryp =""
for to = 1 long to
letra=substr(valor,a,1)
xvalor=abs(asc(letra)+factor+(a*2)-254)
encryp=encryp+chr(xvalor)
endfor
return encryp
I subtract 254 to always obtain an interval ascii betw 1-254
The problem this in that they are different when reading the table under visual the characters.
I have tried to use the option ANSITOOEM () without success.
Both languages COLLATE=SPANISH are
I will thank all suggestion.
Under D.O.S executes an encriptation routine
.....................................
procedure encryp
parameter value
largo=len(valor)
factor=int(largo*2/3)
encryp =""
for to = 1 long to
letra=substr(valor,a,1)
xvalor=abs(asc(letra)+factor+(a*2)-254)
encryp=encryp+chr(xvalor)
endfor
return encryp
I subtract 254 to always obtain an interval ascii betw 1-254
The problem this in that they are different when reading the table under visual the characters.
I have tried to use the option ANSITOOEM () without success.
Both languages COLLATE=SPANISH are
I will thank all suggestion.