brDelete method

For clsD3DynamicArray objects - removes a specific attribute, value or sub-value from the dynamic array. For clsD3File objects - removes the specified item from the D3 file associated with the object.

Syntax

oDynArray.brDelete vnAMC, [ vnVMC], [ vnSVMC]
oFile. brDelete sItemName

Parameters

Parameter Description
oDynArray An object variable that represents a clsD3DynamicArray object from which an element is deleted.
vnAMC A Variant (Long subtype) specifying the attribute mark count where the deletion will begin.
vnVMC Optional. A Variant (Long subtype) specifying the value mark count where the deletion will begin.
vnSVMC Optional. A Variant (Long subtype) specifying the sub-value mark count where the deletion will begin.
oFile An object variable that represents a clsD3File object.
sItemName A String variable specifying the item to be deleted from the D3 file.

Example

Sub DeleteItem_Click()
   Dim oEnv As clsD3Environment
   Dim oConn1 As clsD3Connection
   Dim oItem As clsD3DynamicArray
   Dim oFile As clsD3File
 
   Set oEnv = New clsD3Environment
   Set oConn1 = oEnv.brOpenConnection("ODBC", "production")
   Set oFile = oConn1.brOpenFile("products")
 
   ‘ Delete one item from the file
   oFile.brDelete(Text1.Text)
 
   oConn1.brCloseFile oFile
   oEnv.brCloseConnection oConn1
   Set oEnv = Nothing
End Sub

FlashBASIC reference

Delete (clsD3DynamicArray Object)

TCL reference

delete (clsD3File Object)