DartStream Object : DeleteOnDestroy Property |
Visual Basic |
---|
Public Property DeleteOnDestroy As Boolean |
WARNING Use With Caution
When set to True and FileName specifies a file, the file is deleted when this object is destroyed.
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