Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

Re: Page Number based on slice() method

$
0
0

First of all, you should try giving your variables more meaningful names.

Secondly, the slice method returns a string. If you want to perform mathematical operations you have to first convert that string into a Number object, for example like this:

 

var ram = Number(p_name.slice(1,2));


Viewing all articles
Browse latest Browse all 57214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>