79
« on: August 01, 2016, 02:42:37 AM »
Guys keep in mind, if you use Arrays you need to SetLength always if you want to increase size.
You also can use Array of Variant (Store mixed data such as Float, String, Integer, WORD etc) but then you need to compare typemasks
or cast them all to a native type.
I suggest to avoid variants unless you know what you do. In past i sometimes used like Array of Array of Variant to store 3 kind of Types into 1 Array.
On this way i added Strings to myvar[0] := ['Hello','world'], floats to myvar[1] := [1.1,0.9] and Integers to myvar[2] := [1,2].
With a proper design you can do decent things with such stuff