Deletes the dictionary and all data sections from the specified D3 file.
object.brDeleteFile sFile, [ vbAlways]
Parameter | Description |
---|---|
object | An object variable that represents a clsD3Connection object. |
sFile | A String variable indicating the D3 file to be deleted. |
vbAlways | Optional. A Variant (Boolean subtype) that indicates whether the file will be deleted even if open. The default is False. If vbAlways is True, the file will be unconditionally deleted. |
Private Sub CreateDeleteFile_Click() Dim oEnv As New clsD3Environment Dim oConn As clsD3Connection Dim oFile As clsD3File Dim aTimeDate As New clsD3DynamicArray Set oConn = oEnv.brOpenConnection("ODBC", "production;UID=dm;ACCOUNT=sqldemo”) Set oFile = oConn.brCreateFile("", "daily.log", 3, 31) aTimeDate.brCString = oConn.brTimeDate oFile.brWrite aTimeDate, "1" ... oConn.brDeleteFile"daily.log" oEnv.brCloseConnection oConn Set aTimeDate = Nothing Set oEnv = Nothing End Sub
delete-file