Topic Path: Symbol Reference > Classes > TIdTask Class > TIdTask Properties > Data Property
TIdTask.Data Property

A user-specified object with values used during execution of the task.

property Data: TObject;

Data is a TObject property that represents a user-specified object instance with values that can be used during execution of the task. 

An object instance must be assigned to Data after creation of the task in Create

The Data property is owned by the TIdTask instance, and will be freed in Destroy

Event handlers signalled in the context for the Yarn must be aware of the class type used in the Data property, and are responsible for casting Data to the appropriate class type before accessing properties or methods in the object instance.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.