I have an existing database I created with Pascal Types:
type
Item = record
Description : String;
Quan : Byte;
Price : Real;
end;
var
Inventory : array[1..2000] of Item;
How can I display these records in a GUI program?
Did you do it with normal, flat-file access? as in:
var
MyDatabase: file of Item;
{... etc...}
Write(MyDatabase, Inventory[i]);
{ and so on }
Then you'll have to either move it to a more "formal" database (say, a SQLite one, or even a TBufDataset) or read the data normally and use normal (non-database) controls. This last is not difficult (much less if your data set is really that small): just react to some event (e.g. a key or button press), write or read your "database" and populate some controls with the data.
It realy depends on exactly what you want to do: if it's just to show records as in a TDBGrid you could populate a TStringGrid instead, if to edit the data record by record, some TLabels, TEdits and TButtons, and so on.