[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Classes' (#rtl)

# TDataModule.OldCreateOrder

Determines when OnCreate and OnDestroy are triggered.

## Declaration

Source position: classesh.inc line 2165

`published property TDataModule.OldCreateOrder : Boolean read FOldOrder write FOldOrder;`

## Description

OldCreateOrder determines when exactly the OnCreate and OnDestroy event handlers are called.

If set to True, then the OnCreate event handler is called after the data module was streamed. If it is set to False, then the handler is called prior to the streaming process.

If set to True, then the OnDestroy event handler is called before the data module is removed from the streaming system. If it is set to False, then the handler is called after the data module was removed from the streaming process.

## See also

TDataModule.OnDestroy |  | Event handler, called when the datamodule is destroyed.
TDataModule.OnCreate |  | Event handler, called when the datamodule is created.
TDataModule.Destroy |  | Destroys the TDataModule instance.
TDataModule.Create |  | Create a new instance of a TDataModule.
TDataModule.CreateNew |  |
TDataModule.OldCreateOrder |  | Determines when OnCreate and OnDestroy are triggered.