Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FDP25 - Orphan records code of mine require suggested re
Message
From
18/11/2003 05:53:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00850560
Message ID:
00850909
Views:
12
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform