System.Variants.TCustomVariantType.UnaryOp
Delphi
procedure UnaryOp(var Right: TVarData; const Operator: TVarOp); virtual;
C++
virtual void __fastcall UnaryOp(TVarData &Right, const int Operator);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Variants.pas System.Variants.hpp |
System.Variants | TCustomVariantType |
Description
Implements any unary operations of which the custom Variant type is capable.
Override UnaryOp to implement any unary operators the custom Variant type supports.
Right is the value that appears to the right of the operator. UnaryOp changes this value to indicate the result of the operation.
Operator identifies the operator that appears before Right. It can be any of the following values:
Value | Operation |
---|---|
opNegate |
unary minus |
opNot |
logical negation |
As implemented in TCustomVariantType, UnaryOp raises a system error indicating an invalid operation.