Dart Tcp, Daemon, Udp Controls
DeleteOnDestroy Property
Description
Remove associated file when object is destroyed.
Property type
Read-write property
Syntax
Visual Basic
Public Property DeleteOnDestroy As Boolean
Remarks

WARNING Use With Caution

When set to True and FileName specifies a file, the file is deleted when this object is destroyed.

Example
Private Sub Command1_Click()
	On Error Goto OnError ' use intrinsic error handling
	'Destroys the file and DartStream Object.
	Stream1.DeleteOnDestroy = True
	Set Stream1 = Nothing
	Exit Sub
OnError: ' Any error jumps here
	Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description
End Sub
See Also

DartStream Object  | DartStream Members


PowerTCP FTP for ActiveX Documentation Version 2.2
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic