슬라이드뷰 » Api

getchildinstancebyname

Description

지정한 name 값을 가진 컨트롤의 인스턴스를 가져오는 API이다.

인스턴스를 가져올 컨트롤의 name과 원하는 아이템의 인덱스를 지정해 주어야 한다.

Parameters

Parameters Type Description
nItemIndex short 아이템 인덱스
strCtrlName STRING 가져올 컨트롤의 이름

Return Value

Type Description
INSTANCE 해당 컨트롤의 instance

Example

function btnGetCtrlID_on_mouseup() { // 1번째 슬라이드뷰에 링크된 화면의 컨트롤 name이 test1인 컨트롤의 인스턴스를 가져온다. var obj = slideView.getchildinstancebyname(1, "test1"); if(factory.isobject(obj) == true) { // 해당 컨트롤이 존재하면 컨트롤의 id을 alert으로 띄운다. screen.alert(obj.getcontrolid()); } else { screen.alert("해당 컨트롤이 존재하지 않습니다."); } }

See Also

getchildinstance
getchildinstancebyindex

Viewer Ver.

9.1.1.1

Update Date

20181128