Forum Discussion
p6s
10 years agoNew Contributor
For everyone that tried to help, I had a look and there was nothing wrong with the code per se. It was a data issue.
arySub(iCounter) there was an extra linefeed character at the end that didn't get stripped out.
So while it appeared that
arySub(iCounter) = "daybookvoucherinvoicedateduedateropenamount(tc)openamount(bc)withinterms"
when I compared the lengths, i got this:
len(arySub(iCounter) = 73
len( "daybookvoucherinvoicedateduedateropenamount(tc)openamount(bc)withinterms") = 72
So I knew something was up.
Stripping out the linefeed character gave the expected value.
arySub(iCounter) there was an extra linefeed character at the end that didn't get stripped out.
So while it appeared that
arySub(iCounter) = "daybookvoucherinvoicedateduedateropenamount(tc)openamount(bc)withinterms"
when I compared the lengths, i got this:
len(arySub(iCounter) = 73
len( "daybookvoucherinvoicedateduedateropenamount(tc)openamount(bc)withinterms") = 72
So I knew something was up.
Stripping out the linefeed character gave the expected value.