Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulating sys(2015)
Message
De
09/02/1999 05:20:20
 
 
À
09/02/1999 01:58:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185406
Message ID:
00185427
Vues:
29
>Ok, don't laugh. I have a Fox application that uses sys(2015) to create unique keys.
>
>I would like to create a small utility application in VB that acts upon this Fox data, but I need to know if there is a way to simulate the sys(2015) function. Any ideas?
>
>I suppose if someone can suggest any function, that will return a unique 10 character string, I could substitute this for the sys(2015) call.

Hi Jarod

You could use the following, but it only 99,99% unique.

cUnique = "_"+STR(INT(RAND()* 99999999 + 100000000),9)
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform