Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique id for executable.
Message
De
28/12/1999 14:54:44
 
 
À
28/12/1999 14:46:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309394
Message ID:
00309403
Vues:
19
>I have a executable that is distributed to several organizations. Periodically the data from these organizations are combined. To aviod conflicts in the surrogate primary keys from each organization I want each system to prefix an organization code to the keys when they are created.
>
>How do I provide the organization code to the executable?
>

What kind of a constant? If you need a completely guarenteed unique identifier, generate a GUID using the Windows API and then store it somewhere, but that's a large (16 byte) value. If it's generated per machine, then save it in the registry, otherwise, you'll need a table or initialization file to draw the value from at runtime.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform