More to string types.

This commit is contained in:
Henrique Gottardi Werlang 2024-02-23 07:35:19 -03:00
parent 5042c69e56
commit 61bce04d28

View File

@ -1134,11 +1134,13 @@ begin
Exit('(empty)');
case Kind of
tkString: Result := AsString;
tkInteger: Result := IntToStr(AsNativeInt);
tkBool: Result := BoolToStr(AsBoolean, True);
tkClass: Result := AsObject.ClassName;
tkClassRef: Result := AsClass.ClassName;
tkEnumeration: Result := GetEnumName(TTypeInfoEnum(TypeInfo), AsOrdinal);
tkFloat: Result := FloatToStr(AsExtended);
tkInteger: Result := IntToStr(AsNativeInt);
tkString: Result := AsString;
else
Result := '';
end;