-
1 # 書面的知識
-
2 # 使用者1465424935672
IntToStr function 整型->字串型
函式原型:
function IntToStr(Value: Integer): string; overload;
function IntToStr(Value: Int64): string; overload;
StrToBool function 字串型->布林型
函式原型:
function StrToBool(const S: string): Boolean;
StrToDate function 字串型->日期時間型
函式原型:
function StrToDate(const S: string): TDateTime; overload;
function StrToDate(const S: string; const FormatSettings: TFormatSettings): TDateTime;
StrToFloat function 字串型->浮點型
函式原型:
function StrToFloat(const S: string): Extended; overload;
function StrToFloat(const S: string; const FormatSettings: TFormatSettings): Extended;
StrToInt function 字串型->整型
函式原型:
function StrToInt(const S: string): Integer;
FloatToStr function 浮點型->字串型
函式原型:
function FloatToStr(Value: Extended): string; overload;
function FloatToStr(Value: Extended; const FormatSettings: TFormatSettings): string;
只列出了部分常用的,還有很多,可以檢視幫助獲取!
回覆列表
IntToStr function 整型->字串型函式原型: function IntToStr(Value: Integer): string; overload; function IntToStr(Value: Int64): string; overload;StrToBool function 字串型->布林型函式原型: function StrToBool(const S: string): Boolean;StrToDate function 字串型->日期時間型函式原型: function StrToDate(const S: string): TDateTime; overload; function StrToDate(const S: string; const FormatSettings: TFormatSettings): TDateTime; StrToFloat function 字串型->浮點型函式原型: function StrToFloat(const S: string): Extended; overload; function StrToFloat(const S: string; const FormatSettings: TFormatSettings): Extended; StrToInt function 字串型->整型函式原型: function StrToInt(const S: string): Integer;FloatToStr function 浮點型->字串型函式原型: function FloatToStr(Value: Extended): string; overload; function FloatToStr(Value: Extended; const FormatSettings: TFormatSettings): string;