화면 » Api

getinstancebyindex

Description

화면에 생성된 오브젝트를 in_Index로 찾아 가져오는 API이다.

Parameters

Parameters Type Description
nCtrlIndex short 컨트롤 in_index

Return Value

Type Description
INSTANCE 찾은 오브젝트

Remark

* 찾은 오브젝트 자체를 반환하므로 변수에 담아 직접 컨트롤 할 수 있다.

Example

function btn_getinstancebyindex_on_mouseup() { var targetOBJ = screen.getinstancebyindex(2); if(factory.isobject(targetOBJ)) { targetOBJ.settext("찾은오브젝트"); } }

See Also

getinstance
getinstancebyname
getinstancefirst
getinstancenext

Viewer Ver.

9.1.1.1

Update Date

20110413