Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi all,
I've been trying to test for the page number > 1, but this doesn't work:
<specval attname="foliostr[BO]" attloc="#FOSI" attval="#GT#\1"/">
while this works:
<specval attname="entryct" attloc="#FOSI" attval="#EQ#\10"/">
but this doesn't, if I initialize addnewline.txt=10 in the rsrcdesc:
<specval attname="entryct" attloc="#FOSI" attval="#EQ#addnewline.txt"/">
Is there a way to compare numbers saved to variables? Or, alternately, to test for a column break?
Hi Suzanne,
I needed to insert a blank line after every 10 lines of text in a 3 column table. The top of each column had to have ten entries, and there was a title above the table on the first page only, so it had less entries per column than on the following pages. That meant keeping track of rows per column on the first page and rows per column on subsequent pages, and rows before adding a blank line, or three counters.
I first tried to use specval to compare row counts saved to text variables, but comparisons only worked with constants like attval=#GT#\33\ and not attval=#GT#rowct.txt. And I didn't know how to test the folioct from the Styledesc, foliostr didn't work as the attname, either. So I counted the rows per page, and figured that after row 100 I would be on page 2. I just thought there would be a more elegant way to test for a page break or column break.
Hi Paul,
Yes, I ended up using something very similar, using a constant for the attval.