DeDupe ( startstring ; valuelist )
This function removes duplicate values from an alphabetical value list.
Average rating: 4.2 (37 votes) Log in to vote
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Use this function on top of the BubbleSort function to remove duplicate values from the list. If you don't consider upper/lower case values to be the same, remove the Lower () statements from the function and use the Exact() function to compare values. Always use the value "" as your input for startstring.
Pete the Freeze, Utrecht
Nov 8, 2012
|I used this function in combination with a Dialog_PlugIn (www.kargas.net) to display a dialog with a "combobox" in which the user could select a value from a drop-down list. First the DeDupe was used to set a variable, then an external function from the plugin was used to set the values for the dialog, then an external function displayed the dialog. I hosted the file with the script on FM Server 10.0.1.64 and it worked fine in combination with FMPA 11 on my windows 7 laptop. Now another user ran the script from the hosted file on a MAC using FMP 10 and got the error "the maximum number users are currently using this copy of Filemaker" at the moment the dialog should appear. So setting the variable was not a problem, and using the list to set the values did not create an error. Only the moment it should present the dialog to the user it went awry.|
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.