當我通過發送生成轉換列時變換列到一個數據表,我得到對 Column 的引用作為返回值。
當我通過發送生成轉換列時變換列對於 GraphBuilder 對象,我得到對 Graph Builder 的引用作為返回值 - 沒有對列的引用:(
所以詢問這個 col2 的名字是行不通的。
有趣的是,在與 GraphBuilder 對話時使用 col2 作為參數 - 有效。
在哪裡可以找到有關引用轉換列的更多信息?
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder();
col1 = dt << Transform Column ("col1", Formula(1/:height));
col2 = gb << Transform Column ("col2", Formula(1/:height));
Show(Name Expr(col1));
Show(Name Expr(col2));
gb << Variables(X(:height), Y (col1));
gb << Variables(X(:height), Y (col2)); // gb seems to know col2
Show(col1 << get name());
Show(col2 << get name());
Show(Column(dt, "col1"));
Try(Show(Column(dt, "col2")), "dt doesn't know the column");