@Replace did the trick! I added this to my original code:
vSort = @Replace(vSort, ".000000", "")
and everything is stripped clean. But, to answer your questions:
Quote:What event are you running this on and what kind of element. If it is on entry of a text box element then yes you have to click elsewhere to get it to fire again as you are already in that element.
On-entry of the drop-down selector of a combo box bound to a number field. But yes, selection of the value keeps it in that field, so if I use your other method elsewhere I'll remember to throw the focus off of it.
Quote:Make sure that you are using the 1 argument for @SortStringArray(). 1 is a numeric but a 0 is ASCII sort.
What I did was use your code to replace mine wholesale, so @SortStringArray() wasn't even being used. Not sure where I'd put it in your code.
Thanks for the pointer on PopupSelectPosition().
Thanks for all your help Ray!