Version 1 (modified by 14 years ago) ( diff ) | ,
---|
StrToInt
Convert string to integer number
int StrToInt(string& strVal);
Parameters
- strVal - string containing an integer number
Return Value
- Returns the integer value of the string
Remarks
If the string does not contain a number the result will be zero.
Example
string strVal = "123"; int nVal = StrToInt(strVal);
See Also
Note:
See TracWiki
for help on using the wiki.