brClearFile method

Deletes all the items in the D3 file associated with a clsD3File object.

Syntax

object.brClearFile

The object variable represents a clsD3File object.

Example

Sub Main()
   Dim oEnv as New clsD3Environment
   Dim oConn as clsD3Connection
   Dim oFile as clsD3File
 
   Set oConn = oEnv.brOpenConnection(“ODBC”, “production”)
   Set oFile = oConn.brOpenFile(“daily.log”)
   oFile.brClearFile‘ Clear log file
 
   oConn.brCloseFile oFile
   oEnv.brCloseConnection oConn
End Sub

TCL reference

clear-file

Applies to

clsD3File class