From my testings, "stringlist.Duplicates := dupIgnore/dupError/dupAccept" doesn't appear to help with my problem.
Quick rundown of application:
Two edit fields (Name/IPAddress), 1 button (Add), 1 listbox
When you press the button, it first adds the edName.Text part to the listbox, and then it adds both edName.Text and edIPAddress.Text to a stringlist as a Name=Value pair, which then gets saved to a file.
What I want to do is to prevent doubling up of either the Name or the IPAddress. dupIgnore/Error only works if both Name and IPAddress are the same the second time around, due to it looking at the entire string
(Name=IPAddress instead of Name or IPAddress by themselves).
Is there an easy way to do this, or do I have to figure out a function for myself?
Cheers in advance