Function CSPWString::GetIntVal() Description: Retrieves the integer number represented by the string.
| Prototype: int GetIntVal() const; Arguments: No arguments (void). Return value: Returns an integer number. Remarks: If the string does not represent any number, it returns zero. Also, if the string contains both numeric and non numeric characters, the evaluation stops at the first non numeric character. Examples: CSPWString wstrNumber = L"123"; int iNumber = wstrNumber.GetIntVal(); See also: member functions GetInt64Val(), GetDoubleVal()
CSPWString | Basic classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd