These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Returned Value in Subject Line is 1 less than Entered

wilsonjj
Registered: Jan 7 2011
Posts: 1
Answered

Hello,
 
I am fairly new to Acrobat, but this is the first problem I have run into I haven't been able to find a solution to.
 
I am creating a document to submit warranty information based on VIN number. I am inserting the VIN number into the subject line and it always ends up 1 less than the user entered.
 
EX:
user enters: 12345678901234567
returned value: 12345678901234566
 
I have tried just tacking a +1 into the code and it just returns a number 1 too big and returns an value with an 8 on the end.
 
here is my code:
 
var VIN = this.getField('VIN').value;
var cToAddr = "(EmailAddressHere)"; //removed email address
var cSubLine = "Warranty Labor Request Form for VIN#: " + VIN;
var cBody = "Thank you for submitting your form.\n" + "Save the mail attachment for your own records";
 
this.mailForm({bUI: true, cTo: cToAddr, cSubject: cSubLine, cMsg: cBody});
 
I was thinking about just using a string so that the exact value is transfered over, but curiosity is getting the better of me here and I would like to know why it is returning the wrong value.
 
Thank you so much for any help.
 
Joe

My Product Information:
Acrobat Pro 10.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Accepted Answer
User a text field. Numeric fields are IEEE floating point fields and have a limited length.

George Kaiser