Acrobat Pro - Converting Letters to Numbers


my first time here. know how use basic functions need create form. have problem can't find solution anywhere. simplify it, let's have 2 text boxes. in first text box want able type 1 letter of alphabet. when that, want second box update assign letter numerical value on basis a=1, z=26.

 

do have format 1 text box number box? box put code in? code use?

 

if can solve problem, can replicate solution need, , use simple calculations need do,

 

can help?

 

thanks

so want assign numerical value letter. capitalization important?

 

you should aware since dawn of computers alphabetical symbols have has unique number assigned each character , symbol. 2 main encoding standards ebcidic , ascii. many programing languages include statement or method convert character string value encoding number value. javascript "charcodeat()" method. uppercase , lower case character have different values, important know case of character or force character 1 case. lowercase characters have values 97 through 122 , uppercase characters have values 65 - 90.

 

the following code list codes , values lowercase alphabetical characters:

 

var alpha = "abcdefghijklmnopqrstuvwxyz";
alpha = alpha.tolowercase();
console.println("pos\tchar\tcode\tnumber");
for(var = 0; < alpha.length; i++)
{
console.println(i + "\t" + alpha[i] + "\t" + alpha.charcodeat(i) + "\t" +  (alpha.charcodeat(i) - 96));
}

 

how planning on dealing numbers strings?



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working