트리 » Api

getchilditemcount

Description

지정한 아이템이 자식 아이템 갯수를 리턴하는 API이다.

Parameters

Parameters Type Description
lItem long 트리 아이템
bAllChild BOOL [옵션] 모든 자식 아이템 갯수 여부 (기본값: true)

Return Value

Type Description
long 자식 아이템 갯수 리턴

Remark

bAllChild 파라미터가 fale인 경우, 한단계 자식 아이템 갯수를 리턴한다.

lItem 파라미터가 유효하지 않은 경우, -1이 리턴된다.

Example

function btn_on_mouseup() { screen.alert(trTest.getchilditemcount(trTest.getselecteditem(), true)); }

See Also

getchilditemcountex

Viewer Ver.

9.1.1.1

Update Date

20200218