소스 검색

* 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 := '';