Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FDP25 - Orphan records code of mine require suggested re
Message
De
18/11/2003 05:53:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00850560
Message ID:
00850909
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>>If the logic works correctly in single-user mode, I would suggest you extend the idea to a LAN, applying rlock() to relevant records.
>
>Actually will I have to RLOCK() the LDB and also there are corresponding stock entries in a stock ledger DBF, anything simpler. I have standard UDFs for save etc. somehow can I standarize the whole thing so I don't have to remember to RLOCK(). Where and how can I free the RLOCK(). Sorry but I am not much with LAN commands.

Where: You unlock the record as soon as you don't need the lock any more. How: with the UNLOCK command.

For example:
(go to parent table)
(search record)
if rlock() && you don't want others to do changes, while you play with the child records
  (go to child record)
  (do your changes)
  (back to the parent record)
  unlock
else
  (postpone, or show an error message)
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform