I will assume that with "liberate" you mean "release the lock". After locking the record with rlock() (= lock()), and using it, you should unlock it with
UNLOCK.
Is this what you need?
Hilmar.
>Good morning!
>I am developing a routine for when a registration is in use to join it and after some time to liberate.
>But the routine is not liberating, I am using Rlock.
>My routine is like this:
>Set Reprocess to 5 Seconds
>Set Status OFF
>If !Rlock ()
> Messagebox (" file in use ")
>Endif
>Do While !Rlock ()
> Wait Window " is trying!" nowait
>EndDo
>Return
>Somebody has some suggestion.
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)