멀티라인그리드 » Api
findcbitem
Description
멀티그리드 특정 아이템의 콤보박스 리스트 안에서 찾고자 하는 문자열을 찾아오는 API이다.
Parameters
Parameters |
Type |
Description |
nRow |
long |
검색하고자 하는 row의 인덱스 |
nSubRow |
long |
검색하고자 하는 subrow 인덱스 |
nColumn |
long |
검색하고자 하는 column 인덱스 |
strFindString |
STRING |
검색하려는 문자 |
nFindStringType |
short |
검색 영역(*Remark 참조) |
bCompareCase |
BOOL |
대소문자 구분여부 |
Return Value
Type |
Description |
short |
해당 아이템의 인덱스 |
Remark
문자의 범위는 FindStringType으로 설정할 수 있다.
* FindStringType 상수
0 : code only
1 : code + comment
2 : comment only
Example
function btn_on_mouseup()
{
// 멀티 그리드 아이템의 콤보박스 리스트의 comment 에서
// "전체"라는 문자를 검색한다.
var nFindIndex = mgrid.findcbitem(0, 0, 0, "전체", 2, false);
screen.alert("찾은 데이터 : 전체 / 찾은 인덱스 : " + nFindIndex);
}
Viewer Ver.
9.1.1.1
Update Date
20121228