Topic Path: Symbol Reference > Classes > TIdFormDataField Class > TIdFormDataField Methods > Create Constructor
TIdFormDataField.Create Constructor

Constructor for the object instance.

constructor Create(
    Collection: TIdCollection
); override;
Collection that owns the form data field. 

Create is the overridden constructor for the object instance. Create calls the inherited constructor using Collection as the owner of the` form data field. 

Create assigns the default blank values for string properties in the object instance, including FileName, FieldName, and ContentType. Create assigns Nil to the FieldObject property for the form data field, and clears the internal flag indicating the field object has been assigned. 

Use Destroy to free the collection item. 

Do not use Create to add items to a collection. Use the Add method in the TIdFormDataFields collection to create new items for the collection.

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