Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rlock
Message
From
17/09/1997 13:07:58
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Rlock
Miscellaneous
Thread ID:
00050424
Message ID:
00050424
Views:
61
I am trying to maintain some existing code written in FP 2.6. The program uses rlock() and unlock. I think I see a potential bug but I am not familiar enough with using rlock() to know for sure. Here is what is happening:

SELECT A
USE claims
SELECT B
USE cumtotals
....Get various input
SELECT A
IF rlock()
REPLACE *fields*WITH *variables*
ELSE
wait window "Lock failed try again"
UNLOCK
LOOP
ENDIF
SELECT B
REPLACE "fields* WITH *variables*
UNLOCK

It seems to me that there should be an UNLOCK right before SELECT B, and then another rlock() before REPLACE fields in B. Also, does the LOOP command retry the rlock or where does it go?
--Shane
Next
Reply
Map
View

Click here to load this message in the networking platform