IPXV_Inst::Str2Number Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Str2Number([in]                    BSTR          sStr,
+
<pre class="brush:cpp;gutter:false">HRESULT Str2Number([in]                    BSTR          Str,
                   [in, defaultvalue(-1)]  VARIANT_BOOL  bSigned,
+
                   [in, defaultvalue(-1)]  VARIANT_BOOL  Signed,
                   [out, defaultvalue(0)]  VARIANT_BOOL*  bOK,
+
                   [out, defaultvalue(0)]  VARIANT_BOOL*  OK,
                   [out, retval]          double*        nRes);</pre>
+
                   [out, retval]          double*        Res);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sStr
+
;Str
 
:[in]  The string to be converted in number.
 
:[in]  The string to be converted in number.
;bSigned
+
;Signed
 
:[in, defaultvalue(-1)]  The flag to take into account the minus symbol from input string.
 
:[in, defaultvalue(-1)]  The flag to take into account the minus symbol from input string.
;bOK
+
;OK
 
:[out, defaultvalue(0)]  Returns the <tt>true</tt> if converting was successful.
 
:[out, defaultvalue(0)]  Returns the <tt>true</tt> if converting was successful.
;nRes
+
;Res
 
:[out, retval]  Returns the result of converting.
 
:[out, retval]  Returns the result of converting.
  

Revision as of 07:33, 12 June 2015


Converts the string into number.

Syntax

HRESULT Str2Number([in]                    BSTR           Str,
                   [in, defaultvalue(-1)]  VARIANT_BOOL   Signed,
                   [out, defaultvalue(0)]  VARIANT_BOOL*  OK,
                   [out, retval]           double*        Res);

Parameters

Str
[in] The string to be converted in number.
Signed
[in, defaultvalue(-1)] The flag to take into account the minus symbol from input string.
OK
[out, defaultvalue(0)] Returns the true if converting was successful.
Res
[out, retval] Returns the result of converting.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXV_Inst