Share via


IScriptEntry::SetText

Sets the text that corresponds to an IScriptEntry script block, or the source code that is contained in an IScriptScriptlet event handler.

Syntax

HRESULT SetText(  
   LPCOLESTR          psz  
);  

Parameters

psz
[in] The text of the IScriptEntry script block, or the source code of the IScriptScriptlet event handler.

Return Value

An HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

See also

IScriptEntry Interface