Hello,
Is it that that you can check to see if a record is LOCKED only if you do an exclusive-lock?
I have the record open in the application so I know it is already in use.
If I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
EXCLUSIVE-LOCK NO-WAIT NO-ERROR.
IF LOCKED so_mstr then display
'LOCKED'.
It display LOCKED.
If I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
NO-LOCK NO-WAIT NO-ERROR.
IF LOCKED so_mstr then display
'LOCKED'.
It does not show LOCKED.
Also if I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
EXCLUSIVE-LOCK NO-WAIT NO-ERROR.
IF AVAILABLE so_mstr AND LOCKED so_mstr then display
'LOCKED'.
If I add the AVAILABLE it does not display LOCKED.
Any ideas?
Thanks
Is it that that you can check to see if a record is LOCKED only if you do an exclusive-lock?
I have the record open in the application so I know it is already in use.
If I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
EXCLUSIVE-LOCK NO-WAIT NO-ERROR.
IF LOCKED so_mstr then display
'LOCKED'.
It display LOCKED.
If I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
NO-LOCK NO-WAIT NO-ERROR.
IF LOCKED so_mstr then display
'LOCKED'.
It does not show LOCKED.
Also if I do:
FIND FIRST so_mstr WHERE so_domain = 'us1' and so_nbr = 'S1027688'
EXCLUSIVE-LOCK NO-WAIT NO-ERROR.
IF AVAILABLE so_mstr AND LOCKED so_mstr then display
'LOCKED'.
If I add the AVAILABLE it does not display LOCKED.
Any ideas?
Thanks