</head> <body> <h1>ComObjValue() <span class="ver">[v1.0.91+]</span></h1> <p>Retrieves the value or pointer stored in a COM wrapper object.</p> <pre class="Syntax">Value := <span class="func">ComObjValue</span>(ComObject)</pre> <h2 id="Parameters">Parameters</h2> <dl> <dt>ComObject</dt> <dd><p>A wrapper object containing a COM object or typed value.</p></dd> </dl> <h2 id="Return_Value">Return Value</h2> <p>This function returns a 64-bit signed integer.</p> <h2 id="General_Remarks">General Remarks</h2> <p>This function is not intended for general use.</p> <p>Calling ComObjValue is equivalent to <code><i>variant</i>.llVal</code>, where <i>ComObject</i> is treated as a <a href="http://msdn.microsoft.com/en-us/library/ms221627.aspx">VARIANT structure</a>. Any script which uses this function must be aware what <a href="ComObjType.htm">type of value</a> the wrapper object contains and how it should be treated. For instance, if an interface pointer is returned, <a href="ObjAddRef.htm">Release</a> should not be called, but <a href="ObjAddRef.htm">AddRef</a> may be required depending on what the script does with the pointer.</p> <h2 id="Related">Related</h2> <p><a href="ComObjType.htm">ComObjType()</a>, <a href="ComObjCreate.htm">ComObjCreate()</a>, <a href="ComObjGet.htm">ComObjGet()</a>, <a href="ComObjActive.htm">ComObjActive()</a></p> </body> </html>