]
Sent: Monday, 15 January 2001 12:07
Subject: [DUG]: Copying Chars
I have an File which I am streaming into an array of bytes. I am
converting
the array of bytes into the file structure I have been given.
In the array, position 10-40 are chars which make up a string. How do I
copy
Yeah, thats what I am doing, but I thought there might be another way!
Cheers
-Original Message-
From: Neven MacEwan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 15 January 2001 14:43
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Copying Chars
James
This may be obvios
From: James Sugrue [mailto:[EMAIL PROTECTED]]
Yeah, thats what I am doing, but I thought there might be another way!
Another way:
var LString: string;
SetLength(LString, 31); // chars 10 to 40 inclusive = 31 chars
Move(ByteArray[10], LString[1], 31); // copy from char 10
Cheers,
Carl