Property

Method

Event

 

 

SetFindString

Sets the list of keywords to be shown in the Find dialog box.

Syntax

    HRESULT SetFindString(
    VARIANT* pList
    );

Parameters

pList

[in] The list to be shown in the Find dialog box.

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 string. (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

GetFindString, GetFindStringNum