你好!
按索引引用列的正确方法是什么? 理想情况下,我正在寻找这样的东西:

先感谢您!
您应该只能使用 Column(index)。
向数据列对象发送消息
col = Column( 2 ); // assign a reference to the second column
脚本可能是这样,但在公式中我收到此错误:

有趣的是,弹出窗口提示可以提供号码,但似乎并非如此

尝试使用 << get name 而不是 Column Name()
Choose(:Block,
Column(1) << get name,
Column(2) << get name,
Column(3) << get name
)

完整示例:
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(3),
Compress File When Saved(1),
New Column("Block", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3])),
New Column("Column 2", Numeric, "Continuous", Format("Best", 12), Set Values([1, ., .])),
New Column("Column 3", Numeric, "Continuous", Format("Best", 12), Set Values([2, ., .])),
New Column("Column 4", Numeric, "Continuous", Format("Best", 12), Set Values([3, ., .])),
New Column("Formula",
Character,
"Nominal",
Formula(Choose(:Block, Column(1) << get name, Column(2) << get name, Column(3) << get name))
)
);