瀏覽代碼

* extend TValue.ToString for a few more types

git-svn-id: trunk@39889 -
svenbarth 7 年之前
父節點
當前提交
3ca2529b58
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 5 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -1949,9 +1949,13 @@ end;
 function TValue.ToString: String;
 begin
   case Kind of
+    tkWString,
+    tkUString : result := AsUnicodeString;
     tkSString,
-    tkAString : result := AsString;
+    tkAString : result := AsAnsiString;
     tkInteger : result := IntToStr(AsInteger);
+    tkQWord   : result := IntToStr(AsUInt64);
+    tkInt64   : result := IntToStr(AsInt64);
     tkBool    : result := BoolToStr(AsBoolean, True);
   else
     result := '';