"< LOD" 값을 가진 모든 열과 색상 셀을 살펴보는 스크립트가 필요합니다. 제 스크립트는 원하는 결과를 제공하지 않습니다. 조언이 있나요?
dt = Current Data Table();
// Get all of the column names in the data table
ColNames = dt << get column names( string );
NRows = N Rows( dt );
// Loop through each column and row to find "< LOD" and color the previous cell
For( i = 1, i <= N Items( ColNames ), i++,
column = Column( dt, ColNames[i] );
For( j = 2, j <= NRows, j++, // Start at row 2 to avoid coloring out-of-bound cells
If( Row(j) == "< LOD",
column << Color Cells( j - 1, "Red" );
)
);
);
이것은 값 "F"를 찾는데, 아마도 무엇을 변경할 수 있는지에 대한 몇 가지 아이디어를 제공할 것입니다(각 열에 대한 모든 행을 미리 가져오거나, 셀 인수 순서에 색상 지정 등).
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
colnames = dt << get column names(character, string);
For Each({colname}, colnames,
r = Loc(dt[0, colname], "F");
If(N Items(r) > 0,
Column(dt, colname) << Color Cells("Red", r);
);
);
Write();
편집: 루프에서 불필요한 Show(r);를 제거했습니다.