ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • ToInt
    C++ Builder/함수 2018. 12. 6. 22:16

    #ToInt

    //문자열로 된 숫자를 정수형(Int)로 반환

    System.UnicodeString.ToInt

    C++

    int          ToInt() const;

    Properties

    Type

    Visibility

    Source

    Unit

    Parent

    function

    public

    ustring.h

    System

    UnicodeString

    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

    'C++ Builder > 함수' 카테고리의 다른 글

    foam  (0) 2018.12.06
    ToIntDef  (0) 2018.12.06
    UpperCase  (0) 2018.12.06
    LowerCase  (0) 2018.12.06
    Trim  (0) 2018.12.06

    댓글

Designed by Tistory.