Page History
...
- A component definition must be enclosed inside BEGIN_COM and END_COM statements.
- With the exception of DEFINE_MAP, all definition statements must be placed before event routines. This means that DEFINE_COM, DEFINE_EVT and DEFINE_PTY statements are always defined in the beginning of the component. DEFINE_MAP must either follow the DEFINE_EVT statement it belongs to or it has to be placed inside a PTYROUTINE or a MTHROUTINE statement.
- All code, except for definition statements, must be written inside an event routine or a subroutine.