Function SetShare() Foundation

Sets the default sharing mode for files.

Syntax
SetShare( <nShareMode> ;
        ) --> lSuccess
Return

Returns .T. if the new file sharing mode could be set, otherwise .F.

Description

The default sharing mode for files is recognized only by XbToolsIII functions which perform the file operations open/read/write/close. It is not recognized by Xbase++ file functions.

Constants for <nShareMode> from XBTDISK.CH
Constant Description
SHARE_COMPAT The OS or net work defines the sharing mode
SHARE_EXCLUSIVE Files are exclusively opened
SHARE_DENYWRITE No write access for other processes
SHARE_DENYREAD No read access for other processes
SHARE_DENYNONE File is opened in full sharing mode

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.