Hi, thanx for everyones help. I've nearly finished my project but I've got one more thing todo. I have every record from the array of the type below listed inside it on seperate lines:
type TOrder = record
PlantID: Integer;
Quantity: Integer;
end;
The PlantID is used to select the relative information from the record below and the following data is displayed on the line EnglishName [Quantity * Price].
type TPlant = record
EnglishName: String;
ScientificName: String;
Price: Double;
Toxic: String;
end;
I need tobe able to select a line from the listbox and get the PlantID for the selected line when a button is clicked. It sounds difficult to me but I'm new. If anyone could help i'd be greatful. Thanx again
type TOrder = record
PlantID: Integer;
Quantity: Integer;
end;
The PlantID is used to select the relative information from the record below and the following data is displayed on the line EnglishName [Quantity * Price].
type TPlant = record
EnglishName: String;
ScientificName: String;
Price: Double;
Toxic: String;
end;
I need tobe able to select a line from the listbox and get the PlantID for the selected line when a button is clicked. It sounds difficult to me but I'm new. If anyone could help i'd be greatful. Thanx again