Bryan - Gendev
Programmer
I have been asked to create a program to 'hide' the actual names in a certain field in a VFP table. Thus I would replace the existing string of characters by a new string of random chrs.
thus far I have the code to loop through each chr in the string but I am not able to do the replacement chr by chr. My first attempt is a function thus
this of course produces a range of characters not all of which are in the range A-Z.
How will I create replacement chrs in the range A-Z?
Many thanks
gendev
thus far I have the code to loop through each chr in the string but I am not able to do the replacement chr by chr. My first attempt is a function thus
Code:
Function garble(oldchar)
LOCAL charnum
LOCAL newchar
LOCAL newcharnum
charnum=INT(ASC(oldchar))
newcharnum = charnum * RAND()
newchar= CHR(newcharnum )
Return newchar
How will I create replacement chrs in the range A-Z?
Many thanks
gendev