Property

Method

Event

 

 

GetFileNum

Gets the number of files included in the current document.

Syntax

    HRESULT GetFileNum(
    long type,
    long* pNum
    );

Parameters

type

[in] Type of files to include.

0

All

1

Local files

2

Remote files

pNum

[out, retval] Number of files included in the current document.

Return Values

0 (always)

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

GetFileList