
I need to convert Variant
to TNotifyEvent
but cannot.
As shown in the figure, I use GetPropValue
to get the properties OnClick
for TMenuItem
. I have to compare this with another TNotifyEvent
, so I have to convert it also to TNotifyEvent
.
In runtime, it is always a type TNotifyEvent
, but the code does not compile when I try to apply it to TNotifyEvent
.
How can I make it work? Unfortunately, I only have a version of Delphi 5, so RTTI's capabilities are limited.
source
share