Hi guys,
Just wondering if anyone knows a good way to implement an associative array in delphi. The only way I can see is to create a record, then create and array of that, i.e.
Can anyone think of a more efficient way of achieving this?
Thanks.
Just wondering if anyone knows a good way to implement an associative array in delphi. The only way I can see is to create a record, then create and array of that, i.e.
Code:
type
TData = record
String1:String;
Int1:Integer;
end;
var
DataArray:Array of TData;
Can anyone think of a more efficient way of achieving this?
Thanks.