Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create hash from SSN
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01058120
Message ID:
01058333
Views:
26
Will this work for you?
lcSSN = "123456789"
? PADL(INT(VAL(SYS(2007, LEFT(lcSSN,5))) * 10000 + VAL(SYS(2007, RIGHT(lcSSN,5)))), 9, '0')
* OR
? PADL(INT(RAND(VAL(lcSSN)) * 10^9), 9, '0')
>
>Thank you. I had checked out that function. I think I wasn't clear on what I'm looking for. What I'd like to have instead of the odd character string is a numeric or even alphanumeric string of the same length - similar to a checksum. Is that possible?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform