Property

Method

Event

 

 

DoCommand

Executes the specified command.

Syntax

    HRESULT DoCommand(
    BSTR cmdstr
    );

Parameters

cmdstr

[in] Keyword of the command.

Return Values

0

Executed normally.

1

Ignored due to inappropriate cmdstr.

Sample Codes

VBScript

function TestBtn_OnClick
dim object
set object = document.editForm
object.wec.DoCommand "all_ruler"
object.wec.DoCommand "grid_show"
end function

See Also

Keyword list