Internet Direct (Indy)
Home
PreviousUpNext
TIdFormDataField.Create Constructor

Constructor for the object instance.

Pascal
constructor Create(
    Collection: TIdCollection
); override;
Parameters 
Description 
Collection 
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.

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.