diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-10-07 12:25:45 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-10-07 12:25:45 +0000 |
commit | 981daae13ae0138cee5c2df0e633f269ce81773e (patch) | |
tree | b3846141028e13b56e8a0fd4e635858c600d7b3f /packages/rtl-objpas | |
parent | 7d1500d1d77eb3d0e138e2b8b5d4fe08192300f5 (diff) | |
download | fpc-981daae13ae0138cee5c2df0e633f269ce81773e.tar.gz |
* extend TValue.ToString for a few more types
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@39889 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/rtl-objpas')
-rw-r--r-- | packages/rtl-objpas/src/inc/rtti.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/rtl-objpas/src/inc/rtti.pp b/packages/rtl-objpas/src/inc/rtti.pp index 53d5fd6381..b44055ef13 100644 --- a/packages/rtl-objpas/src/inc/rtti.pp +++ b/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 := ''; |