IPXV_Inst::Str2Number Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
m (Automatic page editing by robot) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXV_Inst::Str2Number Method}} | {{#customTitle:IPXV_Inst::Str2Number Method}} | ||
− | {{#parentPage:PXV:IPXV_Inst|method | + | {{#parentPage:PXV:IPXV_Inst#Methods|Str2Number|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Converts the string into number. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT Str2Number([in] BSTR | + | <pre class="brush:cpp;gutter:false">HRESULT Str2Number([in] BSTR sStr, |
+ | [in, defaultvalue(-1)] VARIANT_BOOL bSigned, | ||
+ | [out, defaultvalue(0)] VARIANT_BOOL* bOK, | ||
+ | [out, retval] double* nRes);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;sStr |
− | :[in] | + | :[in] The string to be converted in number. |
− | ; | + | ;bSigned |
− | :[in, defaultvalue(-1)] | + | :[in, defaultvalue(-1)] The flag to take into account the minus symbol from input string. |
− | ; | + | ;bOK |
− | :[out, defaultvalue(0)] | + | :[out, defaultvalue(0)] Returns the <tt>true</tt> if converting was successful. |
− | ; | + | ;nRes |
− | :[out, retval] | + | :[out, retval] Returns the result of converting. |
== Return Value == | == Return Value == | ||
Line 24: | Line 27: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IPXV_Inst|IPXV_Inst]] |
Latest revision as of 02:58, 15 June 2015
Converts the string into number.
Syntax
HRESULT Str2Number([in] BSTR sStr, [in, defaultvalue(-1)] VARIANT_BOOL bSigned, [out, defaultvalue(0)] VARIANT_BOOL* bOK, [out, retval] double* nRes);
Parameters
- sStr
- [in] The string to be converted in number.
- bSigned
- [in, defaultvalue(-1)] The flag to take into account the minus symbol from input string.
- bOK
- [out, defaultvalue(0)] Returns the true if converting was successful.
- nRes
- [out, retval] Returns the result of converting.
Return Value
Returns S_OK if operation was successful or error code in other cases.