Peter's Blog
2026年5月21日 星期四
Delphi Enum 轉字串
uses
System.TypInfo;
type
TDataState = (stInquiry, stNew, stEdit, stDelete, stRecall);
function DataStateToString(AState: TDataState): string;
begin
Result := GetEnumName(TypeInfo(TDataState), Ord(AState));
end;
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)