Why down vote?, because I don't know where to start? I don't do this for a living like most here. If your going to down vote leave a message of at least why so maybe if I need to re-word it I can.
I don't have any code examples because I don't know were to even start this one.
I tried to search for a way to store and use/update a count in a session but nothing came up to help.
I have a pull-down that reads the option files and populates the second pull down based on what the choice was. That part works great.
With wanting to create this option file based on a different form submission(That is never the same) I'm having a problem.
Needing to get the file that looks like this 1st one to look like what's below as far as the line count and length goes. I was told the length count has to stay at the top of the list. There will be words and numbers only between the "".
This file is written from different points of the form submission so trying to add the proper line count as it's processed has been difficult.
Looking for something to either read and write or other simple ideas to control the line count during processing.
Thanks Bob
combo2.options.length = ;
combo2.options[] = new Option("Item1", "Item1");
combo2.options[] = new Option("Item2", "Item2");
combo2.options[] = new Option("Item3", "Item3");
combo2.options[] = new Option("Item4", "Item4");
combo2.options[] = new Option("", ""); etc...
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
combo2.options[] = new Option("", "");
To look like this
combo2.options.length = 14;
combo2.options[0] = new Option("Item1", "Item1");
combo2.options[1] = new Option("Item2", "Item2");
combo2.options[2] = new Option("Item3", "Item3");
combo2.options[3] = new Option("Item4", "Item4");
combo2.options[4] = new Option("", ""); etc....
combo2.options[5] = new Option("", "");
combo2.options[6] = new Option("", "");
combo2.options[7] = new Option("", "");
combo2.options[8] = new Option("", "");
combo2.options[9] = new Option("", "");
combo2.options[10] = new Option("", "");
combo2.options[11] = new Option("", "");
combo2.options[12] = new Option("", "");
combo2.options[13] = new Option("", "");