# Colon operator for event?

**URL:** https://talk.remobjects.com/t/colon-operator-for-event/19801
**Category:** Oxygene
**Created:** [July 1, 2019, 2:55pm UTC](https://talk.remobjects.com/t/colon-operator-for-event/19801 "2019-07-01T14:55:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wuping](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/5f8ce5/32.png) [@wuping](https://talk.remobjects.com/u/wuping)
#### Post date: [July 1, 2019, 2:55pm UTC](https://talk.remobjects.com/t/colon-operator-for-event/19801/1 "2019-07-01T14:55:05Z")

</div>

I have an event, how can I properly use Colon Operator to check if an event is nil?

event MyEvent EventHandler;

…  
if assigned(MyEvent) then // How to use Colon operator here?  
…

MyEvent:()???

---

<div class="post-metadata">

### Author: ![antonk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/a5b964/32.png) [@antonk](https://talk.remobjects.com/u/antonk)
#### Post date: [July 1, 2019, 3:00pm UTC](https://talk.remobjects.com/t/colon-operator-for-event/19801/2 "2019-07-01T15:00:31Z")

</div>

Try to use `MyEvent:Invoke()`

---

<div class="post-metadata">

### Author: ![wuping](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/5f8ce5/32.png) [@wuping](https://talk.remobjects.com/u/wuping)
#### Post date: [July 1, 2019, 3:31pm UTC](https://talk.remobjects.com/t/colon-operator-for-event/19801/3 "2019-07-01T15:31:32Z")

</div>

Thank you. But this doesn’t work with Island-Window?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 1, 2019, 3:41pm UTC](https://talk.remobjects.com/t/colon-operator-for-event/19801/4 "2019-07-01T15:41:58Z")

</div>

Correct, “Invoke” is an implementation detail on the .NET platform. The proper way, I’m afraid, would be to stick to using assigned() on the event pointer.
