Commit Graph

39 Commits

Author SHA1 Message Date
sergei
b7a56722ff * Cleanup variant->string conversions: TryStrToDate and TryStrToTime are redundant because TryStrToDateTime already does the same checks. Patch from Luiz Americo, resolves #19115.
git-svn-id: trunk@17265 -
2011-04-07 04:10:54 +00:00
sergei
c17afffb65 * Fixed Variant (containing DateTime) to string conversions. Conversion to WideString was plain wrong, and conversion to AnsiString was ignoring the time portion. Patch from Luiz Americo, resolves #19075.
git-svn-id: trunk@17259 -
2011-04-06 07:08:30 +00:00
sergei
046ed5548b * Fixed pointer to cardinal typecasts, which are wrong for 64-bit platforms (significance is low, because these are in debug code).
git-svn-id: trunk@17211 -
2011-04-01 05:45:12 +00:00
sergei
131b7fcdb2 * RTL: Replaced deprecated formatting symbols with their up-to-date counterparts, reduces compiler noise.
* Also removed some unused variables.

git-svn-id: trunk@16744 -
2011-01-09 15:27:05 +00:00
sergei
3c2d918cfe * Partially undo revision 16529: removing VariantToShortString breaks webtbs/tw14536 which calls the mentioned function directly instead of using typecast.
git-svn-id: trunk@16557 -
2010-12-11 23:25:20 +00:00
sergei
ae7018cf85 variants, varutils: another portion of misc fixes:
* Handle Variant to ShortString conversions entirely in variants unit, removed VarUtils.VariantToShortString
+ support varUString in DoVarClearComplex
* fixed missing result assignment in TCustomVariantType.VarDataIsEmptyParam
* TCustomVariantType.UnaryOp and BinaryOp now 'implemented', they raise EVariantInvalidOp

git-svn-id: trunk@16529 -
2010-12-10 03:38:21 +00:00
sergei
5bf51c991c * VarUtils, fixed missing support for interfaces
- NoInterfaces() not used anymore, removed
+ Basic test for VariantArray of IInterface

git-svn-id: trunk@16527 -
2010-12-09 16:38:55 +00:00
sergei
ddfb032913 * VarUtils, fixed a wrong identifier
git-svn-id: trunk@16524 -
2010-12-08 23:42:39 +00:00
sergei
b8aec6e4aa + Support for UnicodeString in variant conversions, based on patch from Ivan Shikhalev, resolves #18083.
git-svn-id: trunk@16502 -
2010-12-04 03:53:28 +00:00
Jonas Maebe
1aa1686778 * fixed varbyref in variant conversion helpers (patch+test by Paul Ishenin,
mantis #14536)

git-svn-id: trunk@13687 -
2009-09-10 16:57:06 +00:00
Jonas Maebe
ef7d9c7a41 * fixed range check errors when typecasting vBoolean to unsigned ordinals
git-svn-id: trunk@12702 -
2009-02-07 21:12:01 +00:00
micha
83b7f81f81 + add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
git-svn-id: trunk@10422 -
2008-03-02 12:59:02 +00:00
joost
4d9c3244fe * If a variant contains a datetime value and is converted to a string, it should return a string in a date/time format. (+test)
git-svn-id: trunk@7643 -
2007-06-13 12:24:16 +00:00
Jonas Maebe
480af93606 * fixed several range check errors inside variant helpers in case the
rtl is compiled with range checking on (Delphi doesn't give range
    errors there either)

git-svn-id: trunk@7513 -
2007-05-29 14:09:24 +00:00
Jonas Maebe
18e0b6e98b * do not turn on range/overflow checking, because several of the
statements cause range errors which should be ignored for Delphi
    compatibility (e.g. assigning a variant which contains -10 to a
    cardinal)

git-svn-id: trunk@6856 -
2007-03-14 19:47:32 +00:00
florian
a99b5470af * big variant from Thorsten Engler, fixes and improves several variant stuff
git-svn-id: trunk@6747 -
2007-03-07 20:45:06 +00:00
Jonas Maebe
77d20627dc * removed duplicate EVariant class from varutils and incorporated
its implementation details in the EVariant class of sysutils
  + added conversions of variant error codes to exception messages
   (together these fix tw4704)

git-svn-id: trunk@3026 -
2006-03-24 22:47:15 +00:00
peter
6c905f6266 * added missing varString,varOlestr to ordinals
git-svn-id: trunk@2340 -
2006-01-25 22:05:31 +00:00
Jonas Maebe
ea3c2fdf46 * fixed used of uninitialized variable in VariantToSingle()
git-svn-id: trunk@2054 -
2005-12-26 15:32:40 +00:00
florian
a440df217b * v.vtype=varString -> double fixed
git-svn-id: trunk@564 -
2005-07-02 16:11:35 +00:00
michael
a775d3d487 + Removed HASCURRENCY VALUEGETMEM VALUEFREEMEM defines
git-svn-id: trunk@293 -
2005-06-09 17:33:22 +00:00
michael
21425e303c + Removed HASVARIANT define
git-svn-id: trunk@244 -
2005-06-07 20:48:31 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
florian
c36eadddf7 + variants: string -> float/int casts 2005-04-28 09:15:43 +00:00
florian
0997316960 * some variant <-> string types fixes 2005-03-28 20:36:14 +00:00
florian
a4df8f9124 + writing of variants implemented 2005-03-10 21:05:36 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
michael
7312e7e4e4 Support for ansistring and better debug outpu 2003-11-04 23:15:58 +00:00
michael
4512a8478f + Removed debug statements 2003-11-04 22:53:55 +00:00
michael
573315745d + Some fixes for string support 2003-11-04 22:27:43 +00:00
peter
9f31783a0a * old logs removed and tabs fixed 2002-09-07 16:01:16 +00:00
peter
5b66a821e4 * currency updates 2002-07-01 16:25:10 +00:00
florian
92b842342c * make cycle for win32 fixed 2001-11-17 10:29:48 +00:00
michael
a62da4ea8f + Real/Boolean support added, Start of string support 2001-11-15 22:33:14 +00:00
michael
d703757d27 + First working variant support 2001-11-14 23:00:16 +00:00
florian
6476fbf2fe * fixed and added a lot of stuff to get the Jedi DX( headers
compiled
2001-08-19 21:02:01 +00:00
michael
e50e70bef2 + new include files 2000-08-29 18:16:22 +00:00