TCArknight
Well-known member
I am laying out a set of fixed tables in a layout named "treetab"
I get:
The fixed table portal[stRow1Col1] contains a Talent which may have the SpecColSpan.? tag. That is the tag I'm trying to check to see if the portal needs to be single, double, triple or 4 columns wide.
At least that was what i was thinking, but now it seems that I'm missing something.
Any suggestions on what I'm missing?
Thanks!
TC
Code:
[FONT="Courier New"] <layout
id="treetab">
<portalref portal="stRow1Col1" taborder="20"/>
<position><![CDATA[
var gap as number
var colspan as number
var cellwidth as number
var cellwidth2 as number
var cellwidth3 as number
var cellwidth4 as number
var hlinewidth as number
var vlinewidth as number
gap = 20
cellwidth = 108
cellwidth2 = (cellwidth * 2) + gap
cellwidth3 = (cellwidth * 3) + (gap * 2)
cellwidth4 = (cellwidth * 4) + (gap * 3)
hlinewidth = gap
~position rows
~row 1
portal[stRow1Col1].left = 0
portal[stRow1Col1].top = portal[stSpecName].bottom + gap
~portal[stRow1Col1].height = 40
[COLOR="Red"][B]if (tagis[SpecColSpan.?] = 0) then[/B][/COLOR]
portal[stRow1Col1].width = cellwidth
else
colspan = tagvalue[SpecColSpan.?]
if (colspan = 2) then
portal[stRow1Col1].width = cellwidth2
elseif (colspan = 3) then
portal[stRow1Col1].width = cellwidth3
elseif (colspan = 4) then
portal[stRow1Col1].width = cellwidth4
endif
endif
]]></position>[/FONT]
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'position' script for Layout 'treetab' on line 26
-> Invalid use of reserved word 'tagis' in script
The fixed table portal[stRow1Col1] contains a Talent which may have the SpecColSpan.? tag. That is the tag I'm trying to check to see if the portal needs to be single, double, triple or 4 columns wide.
At least that was what i was thinking, but now it seems that I'm missing something.
Any suggestions on what I'm missing?
Thanks!
TC