Form

go_block('block_name');
first_record;
LOOP
  message(:block_name.item);
  if :system.last_record  = 'TRUE' then
      exit;
  end if;
  next_record;
END LOOP;

原文地址:https://www.cnblogs.com/quanweiru/p/3433244.html