IScriptEntry::GetRange

Returns the start position and length of an entry.

Syntax

HRESULT GetRange(  
   ULONG              *pichMin  
   ULONG              *pcch  
);  

Parameters

pichMin
[out] For IScriptEntry objects that specify a script block, returns 0.

For IScriptEntry objects that specify a function object, returns the start position of the function in the current script block.

For IScriptScriptlet objects, returns 0.

pcch
[out] For IScriptEntry objects that specify a script block, returns the length of the text.

For IScriptEntry objects that specify a function object, returns the length of the function definition.

For IScriptScriptlet objects, returns the length of the entry.

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