|
질문유 님이 쓰신 글 :
: int와 float구분은 됐는데.
:
: str과 char 구분은 어덯게하죠????
:
: 찾아보았는데 str과 char 구분할 수있는 Try함수가 없네요.... TryStrToChar 함수가 왜없는거죠?
:
: TryStrToBool - Converts an AnsiString to a Boolean value, with Boolean success code.
: TryStrToCurr - Converts an AnsiString to a Currency object, with Boolean success code.
: TryStrToDate - Converts an AnsiString object to a TDateTime object, with Boolean success code.
: TryStrToDateTime - Converts an AnsiString object to a TDateTime object with Boolean success code.
: TryStrToFloat - Converts a given string to a floating-point value with Boolean success code.
: TryStrToInt64 - Converts an AnsiString that represents an integer (decimal or hex notation) to a number.
: TryStrToInt - Converts an AnsiString that represents an integer (decimal or hex notation) to a number with Boolean success code.
: TryStrToTime - Converts an AnsiString object to a TDateTime object with error default.
: StrToBool - Converts an AnsiString to a Boolean value.
: StrToBoolDef - Converts an AnsiString to a Boolean value, with error default.
: StrToCurr - Converts an AnsiString to a Currency object.
: StrToCurrDef - Converts an AnsiString to a Currency object, with error default.
: StrToDate - Converts an AnsiString object to a TDateTime object.
: StrToDateDef - Converts an AnsiString object to a TDateTime object, with error default.
: StrToDateTime - Converts an AnsiString object to a TDateTime object.
: StrToDateTimeDef - Converts an AnsiStrng object to a TDateTime object with error default.
: StrToFloat - Converts a given string to a floating-point value.
: StrToFloatDef - Converts a given string to a floating-point value with error default.
: StrToInt64 - Converts an AnsiString that represents an integer (decimal or hex notation) to a number.
: StrToInt64Def - Converts an AnsiString that represents an integer (decimal or hex notation) to a number.
: StrToInt - Converts an AnsiString that represents an integer (decimal or hex notation) to a number.
: StrToIntDef - Converts an AnsiString that represents an integer (decimal or hex notation) to a number with error default.
: StrToTime - Converts an AnsiString object to a TDateTime object.
: StrToTimeDef - Converts an AnsiString object to a TDateTime object with error default
:
:
:
:
: 질문유 님이 쓰신 글 :
: : 자답합니다! 디버깅해보니 float의 경우 2로 반환해주네요.
: : 해결됐습니다. ㅎㅎㅎㅎ
: :
: : 질문유 님이 쓰신 글 :
: : : TryStrToInt를 공부하면서 제가 하고자 하는곳에 적용했는데요.
: : :
: : : 숫자와 문자 구분은 돼는데.. int와 float 구분을 하려고하는데 이때 TryStrToInt를 적용햇더니
: : :
: : : exception이 뜨네요.... TryStrToInt를 통해 float구분은 안돼는건가요?
: : :
: : :
: : : 질문유 님이 쓰신 글 :
: : : : 아는것이없어서 ... 감사합니다. TryStrToInt 공부해보겠습니다!
: : : :
: : : : Lyn 님이 쓰신 글 :
: : : : : TryStrToInt 해보면 알죠.
: : : : :
: : : : : 질문유 님이 쓰신 글 :
: : : : : : AnsiString a;
: : : : : :
: : : : : : a = Edit1->Text; 해놓고
: : : : : :
: : : : : : a에 값에 숫자 1234 임의에 숫자가 들어가있는경우와
: : : : : :
: : : : : : a에 텍스트값 문자 값이 들어가있는 여부를 구분할수있나요?
: : : : : :
: : : : : : AnsiPos로 찝어내서 말고 임의에 값을 구분할수있나요?
|