Sammy

Can't you just use a pascal record structure
with a case statement and a string 'overlaying' the indvidual parts or a mem
move

HTH

Neven

----- Original Message -----
From: "Sammy" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 6:49 PM
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