Double Dimensional Array/Extent

Posted by Admin on 03-Feb-2010 15:07

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.

All Replies

Posted by Admin on 03-Feb-2010 15:33

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.

Posted by Thomas Mercer-Hursh on 03-Feb-2010 15:37

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.

This thread is closed