탭 » Api
getchildinstance
Description
지정한 탭 아이템 안에 지정한 control_id 값을 가진 컨트롤의 인스턴스를 가져오는 API이다.
Parameters
Parameters |
Type |
Description |
nTabItem |
short |
탭 아이템 인덱스 |
nCtrlID |
long |
가져올 컨트롤의 control_id 값 |
Return Value
Type |
Description |
INSTANCE |
해당 컨트롤의 instance |
Example
function btnGetName_on_mouseup()
{
// 1번째 탭에 링크된 화면에 control_id 값이 4인 컨트롤의 인스턴스를 가져온다.
var obj = tabTest.getchildinstance(1, 4);
if(factory.isobject(obj) == true) {
// 해당 컨트롤이 존재하면 컨트롤의 이름을 alert으로 띄운다.
screen.alert(obj.getname());
} else {
screen.alert("해당 컨트롤이 존재하지 않습니다.");
}
}
See Also
getchildinstancebyindex
getchildinstancebyname
Viewer Ver.
9.1.1.1
Update Date
20110328