Instantiating the PSEvent Class

You must use the CreateObject built-in function to instantiate an object of the PSEvent class:

Local object &EventObject;
&EventObject = CreateObject("PSEvent");