Methods
Create
Destroy
Execute


TCSVImport.Create Next Top
Create creates and initializes a new TCSVImport object.

constructor Create(AOwner: TComponent); override;

Description

Use Create to create and initialize a new TCSVImport object. AOwner is the owner of the TCSVImport object.



TCSVImport.Destroy Previous Next Top
Destroy is the destructor that disposes of an instance of a TCSVImport component.

destructor Destroy; override;

Description

It is not recommeded coding style to call Destroy directly. Call Free instead. Free checks to ensure that the object instance is not nil before calling Destroy.



TCSVImport.Execute Previous Top
Execute will start the TCSVImport component reading the ASCII data file identified by the InputFile property.

function Execute: integer;

Description

After setting the appropriate properties to specify the format of the ASCII file to import and the destination table, call Execute to perform the operation. As a minimum, the InputType and Table properties must be set.

When the operation begins an OnBeginImport event will be triggered. During the operation and OnImportRecord event will be triggered each time a record is successfully read and store to the table. When the operation has completed successfully and OnFinishImport event will be triggered.


11 November 1998 18:58:11
Copyright © 1998 Watt Computers.