Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create hash from SSN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01058120
Message ID:
01058333
Vues:
29
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform