IActiveScriptError::GetSourcePositionIActiveScriptError::GetSourcePosition*
*Contents  *Index  *Topic Contents
*Previous Topic: IActiveScriptError::GetSourceLineText
*Next Topic: IActiveScriptParse

IActiveScriptError::GetSourcePosition

HRESULT GetSourcePosition(
    DWORD *pdwSourceContext,  // context cookie
    ULONG *pulLineNumber,     // line number of error
    LONG *pichCharPosition    // character position of error
);

Retrieves the location in the source code where an error occurred while the scripting engine was running a script.

pdwSourceContext
[out] Address of a variable that receives a cookie that identifies the context. The interpretation of this parameter depends on the host application.
pulLineNumber
[out] Address of a variable that receives the line number in the source file where the error occurred.
pichCharPosition
[out] Address of a variable that receives the character position in the line where the error occurred.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.