팩토리 » Api
xplusshowfolderdialog
Description
폴더선택 대화상자를 표시하고 대화상자에서 선택한 폴더의 경로 또는 폴더 하위의 파일경로 목록을 반환 받는 API이다.
Parameters
Parameters |
Type |
Description |
strInitFolder |
STRING |
기본 디렉토리 |
strTitle |
STRING |
다이얼로그 타이틀 |
bGetFilePath |
BOOL |
[옵션] 파일목록 취득 여부(기본값:true) |
Return Value
Type |
Description |
Array |
파일경로 배열 또는 폴더경로 |
Remark
** bGetFilePath를 true로 설정한 경우, 선택한 폴더 하위의 파일목록을 배열 형태로 반환한다.
bGetFilePath를 false로 설정한 경우, 선택한 폴더의 경로를 문자열 형태로 반환한다.
Example
function btnGetFiles_on_mouseup(objInst)
{
var filepath_arr = factory.xplusshowfolderdialog("", "");
for (var i=0; i < filepath_arr.length; i++) {
// 선택한 폴더의 파일 목록 출력
console.log(filepath_arr[i]);
}
}
function btnGetFolder_on_mouseup(objInst)
{
var folderpath = factory.xplusshowfolderdialog("", "", false);
// 선택한 폴더의 경로 출력
console.log(folderpath);
}
Viewer Ver.
9.1.1.1
Update Date
20230302