Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hashing alphanumeric string...
Message
 
À
17/09/2003 11:22:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829843
Message ID:
00829966
Vues:
28
I think this will work.
FUNCTION HashingPKID
LPARAMETERS tcString

LOCAL lnumero,z

lnumero = 0  
FOR z = 1 TO LEN(tcString)
    lnumero = lnumero + (ASC(SUBSTR(UPPER(tcString),z,1)) * (10*z))
ENDFOR
lnumero = lnumero + 100000 && because I what the number in the 100 000
RETURN lnumero
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform