화면 » Api

getinstance

Description

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

Parameters

Parameters Type Description
nCtrlID short 컨트롤 ID

Return Value

Type Description
INSTANCE 찾은 오브젝트

Remark

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

Example

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

See Also

getinstancebyindex
getinstancebyname
getinstancefirst
getinstancenext

Viewer Ver.

9.1.1.1

Update Date

20110413