Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TCustomVariantType.Clear

Clear a value.

Declaration

Source position: variants.pp line 210

public procedure TCustomVariantType.Clear(

  var V: tvardata

); virtual; abstract;

Arguments

V

  

Custom variant value to clear.

Description

Clear is called when a variant value must be cleared, by VarClear. This is an abstract method that must be overridden and implemented in descendent classes. When the method returns, the type of the variant record must be varClear

If the custom variant value used some heap memory (for intance in an object) then this is the place to release that memory.

Errors

If this method is not overridden, an abstract error will be thrown.

See also

TCustomVariantType.IsClear

  

Is the custom value unassigned ?

TCustomVariantType.Copy

  

Copy a custom variant value.

VarClear

  

Clear the variant value.


Documentation generated on: Oct 27 2024