IntControl 40

Syntax:

IntControl (40, p1, 0, 0, 0)

 

Sets the file sharing mode for file writes.

p1  share mode for file writes (default = 0)

Valid share modes are:

p1

Meaning

-1

don't change (keep current setting)

 0

prevent the file from being shared 

 1

allow other open operations for read access 

 2

allow other open operations for write access 

 3

allow other open operations for read and write access 

 

IntControl 40 will affect the following functions:

ArrayFilePut

ArrayFilePutCsv

BinaryWrite

BinaryWriteEx

FileOpen in "WRITE" / "APPEND" modes.

FilePut

FilePutW

 

Returns previous setting.

 

See also:

IntControl 39