Locked Record Issue

Nancy Palmquist Nancy.Palmquist at vss3.com
Thu Jun 26 09:11:06 PDT 2014


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"

This process is running without a user in a cgi environment and if it 
gets a message that a record is locked, no one is there to handle it.  I 
want to avoid the possibility and I have never had any success with the 
Locked(file) command.

BTW - I don't think the PFSKIPLOCKED variable applies to clerk but I can 
add it if it will help.

If you have had success with this logic, please tell me how you did it.

Nancy

-- 
Nancy Palmquist
Owner
Virtual Software Systems - www.vss3.com
(412) 835-9417



More information about the Filepro-list mailing list