Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock() Problem..
Message
From
22/09/1999 22:35:45
 
 
To
22/09/1999 20:09:23
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00267850
Message ID:
00267874
Views:
27
>to all
>====================
>select h
>if lock()
>append blank
>replace x with z
>endif
>unlock
>=====================
>this abbreviated piece of code is the root of my problem. if a file has records in it, this works fine. but if i zap the file it won't work. in other words if the file is empty it wont work. it seems to be a problem with one particular file only. with other files i dont run in to the problem. any suggestions?
>thanks
>frank

you are locking the wrong record...
Try...
select h
append blank
if lock()
replace x with z
unlock
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform