Re: Tex file import



DGJ wrote:

Hi
I have the task of importing a text file structured as below, into an
ADOdataset. Each record has a space between and a form feed char.
There may be anything up to 10,000 records.

Can anyone advise me what may be the easiest way?

Thanks

DGJ

Date: 21/02/2006
Name: peter john1
Jobno: 192332887
Cgref: 112340
Costing: addition
Model: CMC 4500
Comment: Installed
Location: WH Trostre
Status: not actioned


Date: 21/02/2006
Name: peter john2
Jobno: 194532887
Cgref: 112340
Costing:deletion
Model: CMC 4700
Comment: Installed
Location: WH Trostre
Status: not actioned



Read each record into a string.

Assign the string to the DelimitedText property of a TStringList. See
the on-line help for details.

Remove leading and trailing spaces with the Trim function.

Assign the value to the appropriate field in the dataset using the
..AsString property.

--
Bill Todd (TeamB)
.