Procedure OnCreate
The OnCreate event is always sent right after a COM object is created. You should write an OnCreate event handler to initialize the properties of a COM object when it is created.
It is important to understand the difference between when a COM object is created and when its DataFlex wrapper object is created. This is discussed in detail in the topic COM Object Life Span.
It is always safe to set the properties of a COM object inside of the OnCreate event handler. It is also good practice to always Forward Send OnCreate when augmenting this event handler.