Hi Folks,
I have a need to use Double Dimensional Array/Extent in my project. Since I am very new to Progress this small task has become a huge stone in my way. Could someone guide me or show a code snippet of How to Create Double Dimensional Array/Extent in Progress?
I want my array to look something like this:
FileValArray {
["Field at Index 0", "Value at Index 0"],
["Field at Index 1", "Value at Index 0"],
["Field at Index 2", "Value at Index 0"],
["Field at Index 3", "Value at Index 0"],
["Field at Index 4", "Value at Index 0"],
}.
Progress Version Using: 10.2A
Technologies Using: ABL, WebSpeed.
Thank you very much for your help/guidance.
I have a need to use Double Dimensional Array/Extent in my project
That's not supported by the language. For a two dimensional array, I'd rather use two one-dimensional arrays (fieldnames and fieldvalues). Or use a temp-table or work-file instead.
The general purpose answer for multi-dimensional arrays in ABL is a temp-table. But, since you only have two columns, you could use two one-dimensional arrays as Mike suggests.