Adding records int BLOCK depending on a loop
940100Sep 7 2012 — edited Sep 10 2012Hi all,
I am experiencing problems doing the following:
When i push a button i call a cursor that returns several records, depending on some values on that record i should add or not a record to a block.
Somoeone could tell me how to do it, i am doing:
GO_BLOCK('BLOCK');
FOR reg in cursor
LOOP
..
..
if reg.value = 'S' then
create_record;
:BLOCK.VALUE = 'S';
end if;
..
..
END LOOP
close cursor;
Exception
when others
close cursor;
thx in advance!!!