Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to lock a record While using remote views (ODBC)
Message
 
À
17/07/2002 11:34:36
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00679641
Message ID:
00680445
Vues:
44
There is no direct way of locking it when you are going through ODBC. However, depending upon how critical it is to lock the record, you can create your own locking mechanism.

Here is what I did for one of my app.

1. Add a column in the table. 1. cLockByUserId

2. To lock the record, update cLockByUserId with id of user logged.

3. Check against these fields to see if the record is locked or not.

4. Clear out cLockByUserId to unlock the record.


>I am using VFP7. I am very heavy on remote views for table updating. Is
>there a way to lock a row/record (such as customer record while entering sales orders).
>
>Sincerely,
>
>Raz
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform