>>Is there a command in 2.6 equivalent to VFP RLOCK(0) to lock the header record. What we need is some way to lock the header to enable us to append data in a multi-user environment. In VFP, you can issue an RLOCK(0) where the parameter is the record number. If you issue this call in 2.6, it expects the work area as the parameter!
>>
>>We need to do this to enable us to have control over what to do if we cannot append the data to the file. Reprocess is not an answer, we have looked at that.
>>
>>Can anybody help???
>
>Nigel,
>
>Have you tried FLOCK()?
FLOCK() locks the whole file - I only want to lock the header. I want to prevent other users from adding records BUT they MUST still have access to the table.