Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-User, adding records, and grids...
Message
De
19/11/1998 09:39:11
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157432
Message ID:
00159230
Vues:
28
Of course, in a multi-user in environment you may want to use row or table buffering, in which case the duplicate file ID question becomes a non-issue since nothing happens until you call TABLEUPDATE.

I generally use APPEND BLANK when creating a blank buffered record for user input, and INSERT for just about everything else. Also, no real advantage to INSERT in buffered mode if you are not going to be replacing any values.

Just an opinion...

>>>As a side note instead of append blank
>>>
>>>insert into (lcChild) (quote_no) values (quoteinf.quote_no)
>>
>>What advantages does this have?
>
>The biggest advantage is that you NEVER get a blank record in the table, even for a split second. When many people are adding records simultaneously (or nearly so) the short time between
>append blank
>repl IDField with cNewID
>
can allow several people to add records, giving the dreaded 'duplicate file ID' message.
>
>Barbara
Eric Shaneson
Cutting Edge Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform