Hi..
I am trying to build a 22 character text field that will list a range of pallet numbers for a program i am writing.. ex. I have a list of pallet numbers.. "1 2 5 6 7 8 12 15 16 17 18". I need the text string to reflect the pallet numbers in a format like this or something similar.. "1,2,5-8,12,15-17". Does anyone know how to generate code that would build my text without listing each number sequentially?
Thanks for the help...
webwriter
I am trying to build a 22 character text field that will list a range of pallet numbers for a program i am writing.. ex. I have a list of pallet numbers.. "1 2 5 6 7 8 12 15 16 17 18". I need the text string to reflect the pallet numbers in a format like this or something similar.. "1,2,5-8,12,15-17". Does anyone know how to generate code that would build my text without listing each number sequentially?
Thanks for the help...
webwriter