We do a lot of work with interfacing to COBOL structures.
We use array of char's, the Pascal structure has to include the null
terminating byte

Neil

-----Original Message-----
From: Sammy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 11 April 2001 6:49 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Using a string with a record definition ?


I have for example a database field which is a 50 character string. When
this field is used in COBOL programs it is read into a redefined structure.
If I do


type
  TRecordDef = record
     egName : string[8];
     egDescription : string[20]
     egFlag1 : string[1];
     egFlag2 : string[1];
     egFlag3 : string[1];
     egStatus: string[1];
     egFiller : string [18];
  end;


is there any way to get the data into the structure ?? ie moving the whole
string to the record definition in one hit (rather than piece by piece ?) or
is there anything better than a record to do the sort of thing I want ?

TIA

Sammy !!






---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to