Why does the following formula produce the value 0 for all records? It should display 0.5
whileprintingrecords;
numbervar g;
numbervar array h := [1, 0.5, 0.75, 0.25, 0.666, 0.333];
numbervar counter;
for counter := 1 to 2 do
(
redim preserve h[counter];
g := h[counter];
);
g
whileprintingrecords;
numbervar g;
numbervar array h := [1, 0.5, 0.75, 0.25, 0.666, 0.333];
numbervar counter;
for counter := 1 to 2 do
(
redim preserve h[counter];
g := h[counter];
);
g