I have, what I thought, was a trivial question however I am not quite
sure of an answer yet. I'd like a two dimensional array of strings
and integers. The first "column" will be string and the second "column"
will be integer. later i want the first value of array will caompre to table name so that query may run and the second value of array will compare to combox for some purpose how i want like it .
array[0..3] of Record = (
(string0, integer0)
(string1, integer1)
(string2, integer2)
(string3, integer3)
); in delphi

TRow = record
    Column1: string;
    Column2: Integer;
end;

TArray = array [0..3] of TRow;
commented: Brilliantly eligant +0

sir then how to assign value to TArray value like 'abc' 002, 'def' 003, etc plz give me a complete example.

plz need an example of it help any body

What have you tried?

You can use a StringList...

StringList.AddObject(string0, Pointer(integer0));

The string can be accesssed as StringList.Strings[a_Index];
the integer can be accesssed as integer(StringList.Objects[a_Index])

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.