Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   In the series “avoid Variants when coding in Delphi”: the comparison operator (https://www.delphipraxis.net/205252-series-%93avoid-variants-when-coding-delphi%94-comparison-operator.html)

DP News-Robot 18. Aug 2020 12:10

In the series “avoid Variants when coding in Delphi”: the comparison operator
 
For Variant types, the = comparison operator in Delphi maps to the VarCompareValue in the Variants unit. That function fails to handle various comparisons and for some it knows it can handle raises a VarInvalidOp*through various code paths (like CheckType) to VarInvalidOp*because the implementation limits itself to varEmpty..varUInt64, which I think means that these are […]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:42 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz