화면에서 특정 arrayindex를 가진 오브젝트를 반환하는 API이다.
Parameters | Type | Description |
---|---|---|
strCtrlName | STRING | 오브젝트의 이름 |
nArrayIndex | short | 오브젝트의 arrayindex |
Type | Description |
---|---|
INSTANCE | 찾은 오브젝트 |
* 오브젝트의 이름과 arrayindex를 입력하여 같은 이름을 가진 오브젝트 중 특정 arrayindex를 가진 오브젝트를 반환한다.
function btn_getarrayinstbyname_on_mouseup()
{
var instObj = screen.getarrayinstbyname("btnTest", 1);
if(factory.isobject(instObj)) {
instObj.settext("arrayindex는 2입니다");
}
}