Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_checkr( [ <nrecno> [, <nstanum> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_CHECKR( [ <nRecno> [, <nStanum> ] )


Parameters

<nRecno>
Number of record in question.

<nStanum>
Optional station number to query. If omitted, all currently logged-in 
stations, except for the current station, are queried.


Returns

A one byte string containing the ASCII code of the station number (CHR 
1-255), if any, that has the specified record locked in the current 
file.

The number of the current station is never returned, even if it does 
have the record locked.  Use N_ISRLOCK() to determine if the current 
station has a record locked.

A null string indicates that no other station has the record locked. 
(It is still possible that another station has the file locked.)


Description

If <nRecno> is omitted, the current record is assumed. If <nStanum> is 
specified, then only that station is queried. Use this argument when 
you need to determine if a specific station has a record locked.


Example

// Attempt to lock record.
// If not successful, determine who has
// the record or file locked.
IF !RLOCK()
   @ 1, 0 SAY 'Record locked by station ' + STR(ASC(N_CHECKR()))
ENDIF



See Also: N_CHECKF() N_CHECKS() N_ISRLOCK() N_MONITOR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson