I want to make check to see if a process is "locked." I want to keep checking for a period of time (10 seconds or so I guess), then if it is still locked, then skip on out to the RETURN. If it is not locked (becomes available) then I want to do what's in the ELSE block. I'm think of DO WHILE, but I would need to add time-checking logic somewhere and I guess it wouldn't be an ELSE, but another IF?
IF Proc_Lock.Locked = .T.
* WAIT WINDOW 'Unable to update HL7 at this time.'
ELSE
* Do lots of stuff with a table
ENDIF
RETURN