Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique ID's in inventory systems
Message
De
19/05/1999 11:37:58
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
19/05/1999 07:27:06
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00220153
Message ID:
00220470
Vues:
24
>If you use the NewId function in the DefaultValue of the PK, you should leave >the function in the DBC. That way you code it once and forget it. Otherwise >you run the risk of not having the code available when adding a new record >outside your application or forgetting to SET PROCEDURE to the .PRG file.

>Encapsulation is a wonderful thing.

>Just my $0.02

>Rex

Hi Rex, I don't have it in the default value of the PK, maybe not too standard, but I have a newid.prg file, gets called without having to use "set procedure to", I don't use it as a default value because I do record recycling, so the "new" record may not be a new one after all, but a recycled one, therefore the default value would not be filled, as I said, I had no problems with ths scheme.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform