Vote UpVote

TOmniValue handles arrays, hashes and records

The Delphi Geek – Arrays For quite some time, TOmniValue record has the ability to store arrays. You would use TOmniValue.Create([1, 2, ’OTL’, TButton.Create(nil)]) and some magic would store this array inside TOmniValue, The problem, though, was that this magic was quite lame. The array was converted to a ‘variant array’ and you could only access its elements as Variant type. This, besides other things, meant that it was not simple to store pointers, interfaces and objects in TOmniValue array. Or, better said, it was simple to store them but not simple to retrieve them. You needed some ugly casting like ...
Favorite? Off-Topic? gabr @ 2011-11-09 16:19


Visits: 513
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
Jørn E. Angeltveit
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)