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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare Tstringlist or Listbox

Status
Not open for further replies.

Starbucks123

Programmer
Apr 14, 2010
4
Hi,

I am new to Delphi but i am writting a program to compare the contain of the Two Tstring list or inside Two listboxs

I wrote the contain inside the listbox into a text file but i am not sure if Delphi is able to check and compare the contain inside the text file and identify the different strings inside.

Thank you!
 
a for-loop iterating over the lists should do wonders
 
Do you mean using Nested for loops?

I have tried using while loops to check my items in a listbox. However it does not meet my requirement.

So I think, I would be trying to store my items into a TstringList and start comparing the two items in the Tstringlist. If any of the items is different it would call for others instructions.

Yup. Thanks for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top