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 ...
Visits by Source
Users who voted for this posting
Jørn E. Angeltveit