Locked Record Issue

Nancy Palmquist Nancy.Palmquist at vss3.com
Thu Jun 26 10:35:52 PDT 2014


I put in the

If: locked(file) eq "1"

and I get a syntax error that points at "eq".

I added all the -pw to the lookups.

Is there any other rules I might be missing?

Nancy


On 6/26/2014 12:19 PM, Kenneth Brody wrote:
> 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 ...
>

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



More information about the Filepro-list mailing list