Function SetShare() Foundation
Sets the default sharing mode for files.
SetShare( <nShareMode> ;
) --> lSuccess
Returns .T. if the new file sharing mode could be set, otherwise .F.
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.
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 |
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.