Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Within a Progress database, you can have a field defined as type ARRAY. This one field, in one row, can contain many different values delimited by a character.
In the example below, a field looks as follows:
Column A
0;1;1;0;1;1;0;0;1;0;0;0;0;0;0;0;0;0;0;0
1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;0;0
1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
1;1;1;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
Notice that the values are delimited by a semi-colon and that there are about 20 values contained in the array.
For a given record, based on values in other fields, you may want to look at a particulare value in the array.
3 fields
Measure Numerator Array
1 1 0;1;1;0;1;1;0;0;1;0;0;0;0;0;0;0;0;0;0;0
1 2 1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;0;0
1 3 1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
1 4 1;1;1;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
If the Numerator field is the defining field that dictates where in the array to look, you can use a function called Subfield() to parse the array for the appropriate value.
For example, in the script, you can utilize Subfield() as follows:
Subfield(Array, ‘;’, Numerator) as ArrayValue
Hi,,
I have the similar problem,
I have field month which is defined as array from progress db,how i seperate into new field?
example:
month[12] year
0;1;3;2;1;4;2;5;-2;0;1;3 2013
how i can make this table below from table above?thanks,,
month year qty
jan 2013 0
feb 2013 1
march 2013 3
apr 2013 2
may 2013 1
june 2013 4
july 2013 2
august 2013 5
sept 2013 -2
okt 2013 0
nov 2013 1
des 2013 3