Q&A
Ask and answer questions to make information more available to wider audiences.
Prince Bentley @bentleyprince   02, May 2023 12:00 AM
records in Delphi
What are records in Delphi?
answers 1
 
Answer 1
Alivia Morrish @morrishalivia   05, May 2023 04:58 PM
Records are a useful and distinguishing feature of Delphi. They provide a very neat way of having named data structures - groups of data fields. Unlike arrays, a record may contain different types of data. Records are fixed in size - the definition of a record must contain fixed length fields. We are allowed to have strings, but wither their length must be specified (for example a: String [20]), or a pointer to the string is stored in the record. In this case, the record cannot be used to write the string to a file. The TPoint type is an example of a record.