Announcement

Collapse
No announcement yet.

Duplicate items(values) in Combobox or listbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Duplicate items(values) in Combobox or listbox

    I need a script that will detect multiple numbers in either combobox or listbox and gives a dialog.

  • #2
    1. Copy the values of the Combobox or Listbox into a table
    2. Sort the table
    3. 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
    4. If two identical values are detected, break out of the loop and show desired error message
    Ulrich

    Comment


    • #3
      Thanks so much but am new to scripting and I don't fully understand what you helping me with. Can u please get me the script. Thanks

      Comment


      • #4
        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

        Comment


        • #5
          I have created an app with AMS that I use to collect data and input them. Whenever I enter data and closes the application, the next time I want to add new data what I already added vanishes. My question is is there a way to save the previous data I entered

          Comment


          • #6
            You have several options:
            1. There are INIFile actions which you can use to store and retrieve data;
            2. You can use the TextFile actions to save the information entered, and read them back;
            3. There are Application.SaveValue() and Application.LoadValue() actions you can use to save and restore data;
            4. You can use the Registry actions and store and read the info from the registry, if you have experience;
            5. You can use a SQL database and save the information in records, and read these records at program startup to populate the objects
            These are just the one which occurred me, probably there are still other options.

            Ulrich

            Comment


            • #7
              Thanks so much

              Comment

              Working...
              X