Property

Method

Event

 

 

GetFindStringNum

Gets the number of items in the keyword list located in the Find dialog box.

Syntax

    HRESULT GetFindStringNum(
    VARIANT* pNum
    );

Parameters

pNum

[out, retval] Number of items on the list.

Return Values

0 (always)

Sample Codes

VBScript

function TestBtn_OnClick
dim object
dim array() ' Dynamic array.
dim cnt
set object = document.editForm
cnt = object.wec.GetFindStringNum() ' Gets the number of strings.
redim array(cnt-1) ' Changes the size of the array. ( 0 base index)
object.wec.GetFindString array ' Gets the strings.
    for i =0 to cnt-1
     array(i) = array(i) + "." ' Puts a period to every string.
next
    object.wec.SetFindString array   ' Sets the array as the keyword list.
end function

See Also

SetFindString, GetFindString