戻り値
説明
例 | |
{value let t:#Table let i:int = 1 let b:CommandButton = {CommandButton label={no-break Add another}, {on Action do {if i <= 10 then {t.add {column-prototype width=1cm, i, i * i, i * i * i}} set i = i + 1 else {t.clear} {t.add {column-prototype "N", "N squared", "N cubed"}} set i = 1 } } } set t = {Table cell-border-color="black", cell-border-width=1pt, halign="right", {column-prototype "N", "N squared", "N cubed"} } {VBox b, t} } |
例 | |
{value let t:Table = {Table {row-prototype 1, 2, 3}, {row-prototype 2, 4, 6}, {row-prototype 3, 6, 9}} {t.add {row-prototype row=1, color="blue"}} {t.add {column-prototype column=1, font-size=14pt}} t} |
注意事項