_CP_lock

_CP_lock


_CP_locate Index Level _CP_logon
Syntax int _CP_lock(int type, int expression)
Category C Interface
Type C Function
Description equivalent to the FlashBASIC statement: lock

The variant of lock used depends upon the type parameter:

Type             FlashBASIC statement

_CP_LOCK         lock expression
_CP_LOCK_W       lock expression else * return -1

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Options
See Also C Functions introduction _CP_unlock _CP_unlock_all
Example The following example sets basic lock 1.

_CP_lock(_CP_LOCK,1);
Warnings
Compatibility AP 6.1
_CP_locate Index Level _CP_logon