Delphi: TVarRec array versus varArray

I want to use an open array with various types (for example:) ['string',12,123.21]. During my search, I found two ways to do this. One of them has array of TVarRec, and the other - varArray. I think the TVarRec array is a better choice because it looks lighter, on the other hand, varArray already has some implementations that I will need to create if I want to use TVarRec arrays.

Does anyone have any opinions on using these two methods?

+3
source share
2 answers

Maybe you can use array of Variant?

+5
source

If you are looking for an open version of the array, a solution array of const.

array of constimplemented internally as an array TVarRec. Read the article by Rudi Veltius for more details .

+7
source

All Articles