Browse Source

* extend TValue.ToString for a few more types

git-svn-id: trunk@39889 -
svenbarth 6 years ago
parent
commit
3ca2529b58
1 changed files with 5 additions and 1 deletions
  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 := '';