Answered
I have a dynamic LC form that has a table that auto increments a cell in each row by 1, 2, 3... when a row is added or deleted. My client want to use A, B, C...AA, BB, CC... instead of numeric numbers. This is the script I use to auto increment by number:
this.access = "protected";
this.rawValue = this.parent.index +1;
Is this possible?
jasaussie
// Initialize
var cInc = "A";
// Increment
var nInc = cInc.charCodeAt(0);
if(cInc < "Z")
cInc = String.fromCharCode(++nInc);
To add more characters "AA" "BB" etc. requires code for getting the current length and rebuilding the string.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script