RAD Studio VCL Reference
|
Implements any unary operations of which the custom Variant type is capable.
procedure UnaryOp(var Right: TVarData; const Operator: TVarOp); virtual;
virtual __fastcall UnaryOp(TVarData Right, const TVarOp Operator);
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|