Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last NN entries
Message
 
To
10/05/2000 13:11:00
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00368038
Message ID:
00368221
Views:
19
OIC, Thanks Eric.

>Some value that is assigned to each entity that can create a new record. That entity then appends the value to the PK to stamp it as globally unique. As long as each "node" has a unique node value, none of the PKs should be duplicate.
>
>Alternatively,
>
>lcGuid = SPACE(16)
>DECLARE INTEGER CoCreateGuid IN "Ole32.dll" STRING @
>=CoCreateGuid(@lcGuid)
>lcNewPK = lcGuid
>
>Creates a globally unique 128 bit identifier using the same algorithm used by all other windows computers. This value is virtually guaranteed to be unique across space and time. IOW, noone, nowhere, on any machine will ever create the same value.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform