콤보박스 » Api

getselectedcomment

Description

콤보박스에 선택된 아이템의 코멘트값을 가져오는 API이다.

Parameters

Parameters Type Description
strCode STRING [옵션] 코드값

Return Value

Type Description
STRING 선택된 아이템의 코멘트값

Remark

strCode 파라미터 미 지정시 그리드 아이템의 값을 사용하고, 값 지정시 해당 파라미터 값을 기준으로 코멘트값을 반환한다.

Example

function btnGetselectedcomment_on_mouseup() { var strComment; // 현재 값을 기준으로 선택된 코멘트 값을 구함 strComment = cbTest.getselectedcomment(); if (strComment == null) { screen.alert("오류 발생"); } else { screen.alert("현재 값에 대한 코멘트 : " + strComment); } // 파라미터에 해당하는 값을 기준으로 선택된 코멘트 값을 구함 strComment = cbTest.getselectedcomment("2"); if (strComment == null) { screen.alert("오류 발생"); } else { screen.alert("파라미터 값에 대한 코멘트 : " + strComment); } }

See Also

getselectedcode
getselectedindex

Viewer Ver.

9.1.1.1

Update Date

20241018