I'm running into a problem with an Invoice Templat...
# advancedpdf
j
I'm running into a problem with an Invoice Template. I'm trying to generate a check bit value for a scan line, thus i'm doing some multiplication on numbers in a string. I have tried "casting" these characters in every various way I can think of, such as "acct?string[bit_index]?number", "acct[bit_index]?number, and Michoel's "toNumber" function as well, to no avail. When i simply print out the value of my string acct, It prints correctly - "00104724". For whatever reason, I get an error when trying to use the 6th bit of this string "7". The image attached shows the error. It looks like i might be stomping on memory, as the errors complain about the last 3 characters of the string. It says that the value of those characters is "T", "a", "x", even though when printed they are "7", "2", "4". Any help would be greatly appreciated.