Detach


The Detach method detaches currently attached file from the object, flushing its buffer and closing it if necessary.
C++
long Detach(void);
BASIC
Detach() As Long

Parameters

Method has no parameters.

Return Values

If the method succeeds, the return value is 0.
If the method fails, the return value is failure code and error code is set. Call GetError to get error code.

Remarks

If object was initialized with IXF_MODE_CLOSE flag, file is closed before detaching from the object.

See Also

Close, Attach, Flush, Opening and Attaching File