What I am now trying to do is see if I can modify an exisiting script to add new functionality to it. But I need help as I am not a programmer.
The first script is for creating index term for part numbers in a column in a table. You place your cursor in the colomn that you want the index to show and press f12. It runs our auto_index.acl script (thanks Dmitry), works pretty good, doesnt stop when there is a blanks cell. Thanks to Suzanne Napoleon and Gareth Oakes for helping me with getting my index to properly format the numbering.
"For numerical sorting with FOSI indexing, you need a "sortas" attribute. For example:
When the sortas attribute has a value, FOSI coding adds an <ixkey> with the attribute value to the preliminary index entry. Index processing takes it from there.
I am now wondering if i can combine this idea with my index creation script that it will create the index term if it is not 6 characters then it will create a index-sort-as element and populate it with zeros an the first number what ever it may be.