Signature (Visual Basic / VBA)
Public Function Remove( _
ByVal vName As Variant _
, Optional ByVal vCompare As Variant _
) As Boolean
Code Example
Assuming
Dim stTemp As New SymbolTable
stTemp.Add "FunctionName", 23
stTemp.Add "FunctionName", 24
for example
stTemp.Remove("FunctionName") = True
leaves
stTemp.Count = 1
Parameters
| Parameter | Description |
|---|---|
| vName | The string or numeric identifier of the Symbol Table entry that is to be removed. |
| vCompare | Specifies the type of string comparison used to determine if Names match. vCompare defaults to the value of the Compare Property if it is missing. |
Notes & Version History
| v2.0 Change | Changed the vCompare argument so that it can no longer be Null or non-numeric. It is still Optional though, so it can be missing. |
| Note | If there are multiple Symbol Table definitions with the same Name , this function will remove the one that was mostly-recently-added. |
| Performance | This function can be inefficient because it scans the Symbol Table from end to beginning looking for the spefied Name . |