Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique id for executable.
Message
From
28/12/1999 14:54:44
 
 
To
28/12/1999 14:46:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309394
Message ID:
00309403
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform