Function CSPString::GetIntVal()

Description:
Retrieves the integer number represented by the string.

Micronovae 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

Copyright © 2002 - 2006 Micronovae Ltd. - www.micronovae.com