Heres what I am doing:
I have a typed binary file using the following record type :
type Tdata = string;
problem = record
chapter : string;
section : string;
problem : string;
info : Array [0..5] of Tdata;
My goal here is to have a binary file that holds some records of type problem, but each record needs to be able to store more than 255 characters of data. To do this, my idea was to have an array of string's which I did using the info part of the problem record type.
When the user types in the information into the memo box, the program checks to see if the length > 255, if it is, it splits the data up into pieces and saves each 255 size piece in one of the indexes in problem.info.
This works, and when I view the binary file, all of the data is being properly stored there. However, when the user comes back to pull data out of the binary file, it cannot display all of it.
The text property of the memo box is of type string, so it can only store up to 255 characters. How can I display all of the data in the file in the memo box, or do I have to use something else?
Thanks for the help.