Posted on 2001-07-15
I am not a programmer and am working with Delphi 2 to put together a small program for myself as a learning process.
In the program i am using a record structure to keep information together such as:
Type TRList = Record
LMark : String;
LText : array[0..3071] of char;
LMark2 : String;
LString : String 
LTrue : Boolean;
LNum : Integer;
Various input within the program is transferred to the record structure via usual means such as:
and so forth.
However with the RichEdit in the program, the text is gathered with a richedit1.lines.text command so that any line formatting is retained.
it is then transferred to the LText array via the strpcopy(LRec.LText, richedit1.lines.text);
The record is then saved to file with the normal Write command.
Only the first 255 characters of the richedit1.lines.text are saved to LText yet the space for the 3072 chars are allocated in the file.
Anyone know how i can solve this? I shall give more points if required.