보고서의 Helpkey 값에 액세스 할 수 있습니까? 보고서가 특정 플랫폼이라는 것을 확인하고 싶습니다. 예를 들어 2 변수라고하면 제목이 변경되면 Helpkey에 원하는 정보가있는 것으로 보입니다. 도움말 키를 사용할 수없는 경우이를 확인하는 또 다른 방법이 있습니까? 알아낼 수있는 유일한 방법은 2 개의 연속 축이 있는지 확인하는 것입니다.
어쩌면 다른 접근 방식이 효과가있을 수 있습니다. 이 스크립트는 열려있는 모든 창을보고 보고서를 찾고 해당 스크립트를 표시합니다. 스크립트는 보고서를 다시 작성하는 방법을 알려주며 필요한 정보도 가지고 있습니다.
// get a list of open windows
wlist = Window();
// some of them might be platforms
For( i = 1, i <= N Items( wlist ), i += 1,
ob = Try( wlist[i][Outline Box( 1 )] );
// see if there is an outline box
If( Type( ob ) == "DisplayBox",
// the outline box might be a platform owner,
// see if it is a scriptable object
platform = ob << getscriptableObject;
If( Type( platform ) == "Scriptable",
// found one. display its script
Show( platform << getscript );
s = platform << getscript;
If( Head( s ) == Expr( distribution() ),
If(
Head( Arg( s, 1 ) ) ==
Expr( ContinuousDistribution ),
Print( "ok" );//
, //
Print( "no" );//
)//
, //
Print( "not close" )
);
);
);
);
여러 창이 열리고 두 개의 보고서가 있습니다.
platform << getscript = Bivariate(Y(:weight), X(:height), Fit Line({Line Color({213, 72, 87})}));
"not close"
platform << getscript = Distribution(Continuous Distribution(Column(:weight)), Nominal Distribution(Column(:age)));
"ok"
스크립트는 표현식으로 리턴됩니다. 표현식 함수를 사용하여 연구하거나 char ()을 사용하여 문자열로 변환하고 문자 함수를 사용하여 연구 할 수 있습니다.
c = char(NameExpr(s)); // convert to character
"Distribution(Continuous Distribution(Column(:weight)), Nominal Distribution(Column(:age)))"
contains(c,"Nominal Distribution") // find location of text
56