Getting same sequence of characters in an edit and a listbox?
Posted on 2004-10-22
If the same SEQUENCE OF CHARACTERS appear in both an edit and a listbox, I need the wording in the listbox to be shown in a label. Note that other words will be listed as well, ie:
Example wording in edit: "path/to/elephant.gif"
Another example in edit: "What is the path to elephant.gif?"
Example wording in listbox:
In the above example, I want "animal/elephant.gif" as a label. Note that the wording in the edit could contain spaces (or not) or end with a "?" (or not) or end with any other wording.
I am using Delphi 6. Many thanks for your help.