Sorting a Popup menu with RowTags

Imagine you want to load a popup menu with the name of the files from a given folder, the user will later select an entry from that popup menu to load that file thanks to the file info we will store in the popup menu rowtag property. Now what if we want to sort the popup menu alphabetically? The solution is to load the data into a couple of arrays, sort those arrays together and then load the result into the popup menu. Given ‘f’ is the folder we want to display the items of, this is the code: Dim …

Continue Reading