Function CSPString::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:
CSPString strNumber = "123";
int iNumber = strNumber.GetIntVal();

See also:
member functions GetDoubleVal(), GetInt64Val()
CSPString | Basic classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd