Internet Direct (Indy)
Home
PreviousUpNext
TIdTask.Data Property

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.