Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GUID as Primary Key
Message
De
18/02/2003 12:57:55
 
 
À
18/02/2003 12:25:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00754530
Message ID:
00754540
Vues:
19
>We have a new client who has remote locations. The situation does not call for a wide area network with "on-line" capability. The client would rather give the branch locations the ability to operate on their own and pass data back and forth periodically.
>
>This raises the issue of merging data and the worry about unique primary keys. I have heard about GUID keys as an alternative but, at the time, did not pay enough attention. Anyone have experience with this?

A GUID is universal so it could work in this case. Here's a simple code to create the key:
* Get a GUID
FUNCTION GetGUID
LOCAL loGUID
loGUID=CREATEOBJECT('Scriptlet.Typelib')
RETURN STREXTRACT(loGUID.GUID,'',CHR(0))
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform