Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a GUID
Message
De
13/04/2007 09:58:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01215258
Message ID:
01215510
Vues:
13
Russell,
If you read the details of how GUID is generated (there are tons of technical sources explaing what each byte means on the internet for different versions) you'd see that actually it's not as long as it sounds. You might drop some parts (ie: generator code like 4 for Microsoft). And then further you could convert readable hex notation to readable 36 base (digits and letters). However you should think of it, if you do a very specific implementation then you'd lose cross database capabilities (SQL server generates it, Oracle does, .Net have a class etc).
Cetin

>I knew there was a way to get a Windows-like GUID directly from Windows, but I don't need something that long and unreadable. Of course, the odds of getting a duplicate with that GUID are about 16 quintillion gazillion bazillion to one, but I'll take my 1.1 trillion to one for now. <g>
>
>>>I'm creating a simple GUID, 5 digits followed by 5 characters (uppercase A-Z only). Am I right in calculating the number of possible permutations as:
>>>
>>>10 x 10 X 10 X 10 X 10 x 26 x 26 x 26 x 26 x 26 = 1,188,137,600,000
>>>
>>>Hey, it's been a long time since I had to do this!
>>>
>>>Russell Campbell
>>
>>Re: How generate a valid GUID Thread #1046923 Message #1046937
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform