C++ Builder/함수
ToInt
딸기우유중독
2018. 12. 6. 22:16
#ToInt
//문자열로 된 숫자를 정수형(Int)로 반환
System.UnicodeString.ToInt
C++
int ToInt() const;
Properties
Type | Visibility | Source | Unit | Parent |
function | public | ustring.h |
Description
Converts string to integer, throwing an exception if the string is invalid.
ToInt converts the given string to an integer value and returns the integer. If the string does not contain a valid value, an EConvertError exception is thrown.
ex) {
UnicodeString TestString = "123";
ShowMessage(TestString.ToInt());
}
728x90