I need a script that will detect multiple numbers in either combobox or listbox and gives a dialog.
Announcement
Collapse
No announcement yet.
Duplicate items(values) in Combobox or listbox
Collapse
X
-
- Copy the values of the Combobox or Listbox into a table
- Sort the table
- In a loop, compare one position of the table with the previous/next one, and check if the value is the same as the current one
- If two identical values are detected, break out of the loop and show desired error message
- Likes 1
-
If you need somebody to write the code for you, you can hire me - contact details can be found by clicking my signature. Or you could try to learn, attempting to implement what I described, show your script and where you are stuck.
Ulrich
- Likes 1
Comment
-
You have several options:- There are INIFile actions which you can use to store and retrieve data;
- You can use the TextFile actions to save the information entered, and read them back;
- There are Application.SaveValue() and Application.LoadValue() actions you can use to save and restore data;
- You can use the Registry actions and store and read the info from the registry, if you have experience;
- You can use a SQL database and save the information in records, and read these records at program startup to populate the objects
Ulrich
- Likes 2
Comment
Comment