Locked Record Issue

Kenneth Brody kenbrody at spamcop.net
Thu Jun 26 09:19:24 PDT 2014


On 6/26/2014 12:11 PM, Nancy Palmquist wrote:
> Fellow filepro developers,
>
> I just wondered if anyone could save me some time testing out a possible
> solution to a problem.
>
> In a clerk session, (filepro 5.0 version) I have a lookup to a file like
> this:
>
> lookup file=myfile k=ke i=a -nxp
>
> Can I tell right at that point if the record is locked and move
> somewhere else in the programming?
>
> if Locked(file) eq "1" then "do something"
[...]

You're already 99% of the way there...

Add the 'W" flag to the lookup:

   Then:  lookup file=myfile k=ke i=e -nxpw

Then you can test with:

     If:  locked(file)
   Then:  ... do something ...

-- 
Kenneth Brody


More information about the Filepro-list mailing list