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/)
-   -   Generics, Enumerated types and ordinal values (https://www.delphipraxis.net/159703-generics-enumerated-types-ordinal-values.html)

DP News-Robot 8. Apr 2011 17:20

Generics, Enumerated types and ordinal values
 
I wish this was a solution post, but it is a frustration post. I trying to figure out how I can use Ord() to convert an enumerated type to integer or cast an integer to an enumerated type using generics type arguments?uses SysUtils, TypInfo;type TEnumGen = class class function Name(const ...http://feeds.feedburner.com/~r/delph...~4/OYBv-nJiCJo

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:55 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