Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, thanx for everyones help. I've

Status
Not open for further replies.

jgd12345

Technical User
Apr 22, 2003
124
GB
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
 
When you fill the ListBox, store the PlantID as the Items.Object value (casting it to and from a TObject).

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top