Property

Method

Event

 

 

GetFileList

ÇöÀç ÆíÁý ÁßÀÎ ÆÄÀÏ¿¡ Æ÷ÇÔµÈ ¹®¼­ ÆÄÀÏÀÇ À̸§À» ±¸ÇÕ´Ï´Ù.

Syntax

    HRESULT GetFileList(
    long type,
    VARIANT* pList
    );

Parameters

type

[in] ´ë»ó ÆÄÀÏÀÇ Á¾·ù¸¦ ÁöÁ¤ÇÕ´Ï´Ù.

0

¸ðµÎ

1

·ÎÄÃ(Local) ÆÄÀÏ

2

¸®¸ðÆ®(Remote) ÆÄÀÏ

pList

[in, out] Æ÷ÇÔµÈ ¹®¼­ÀÇ À̸§ (SafeArray BSTR ŸÀÔ)

Return Values

Ç×»ó : 0

Remarks

pListÀÇ array´Â GetFileNum ¸Þ¼Òµå¿¡¼­ ±¸ÇÑ ÆÄÀÏ °³¼öº¸´Ù ¸¹¾Æ¾ß ÇÕ´Ï´Ù. ÆÄÀÏ °³¼öº¸´Ù arrayÀÇ °³¼ö°¡ ÀûÀ¸¸é pList¿¡ ÆÄÀÏ ¸®½ºÆ®¸¦ ä¿ìÁö ¾Ê½À´Ï´Ù.

Sample Codes

VBScript

    dim object
    dim array1()
    dim n
    Set object = document.editForm
    n = object.Wec.GetFileNum(0)
    MsgBox n
    if n = 0 then
    exit Function
    end if
    Redim array1(n-1)
    object.wec.GetFileList 0, array1
    for i=0 to n-1
    MsgBox array1(i)
    next

See Also

GetFileNum