Q: How to loop through a Parameter List? (Forms4.5)

From: Martin Boroske <boroske_at_stud.uni-hannover.de>
Date: 02 Aug 1999 11:03:05 +0200
Message-ID: <lw64siiblme.fsf_at_studserv.stud.uni-hannover.de>



Hello!

In Forms 4.5 I created a Parameter List using

"create_parameter_list(pl_name)"

and filled it up with some values using

"add_parameter(...)".

Now I would like to retrieve the results in a way like this:

    tmp_num := 0;
    tmp_val := 'start';
    par_name := 'par' || to_char(tmp_num);
    while ( tmp_val != '' )
    LOOP
      get_parameter_attr(pl_name, par_name, tmp_out, tmp_val);
      message('OUT: "' || to_char(tmp_out) || '" VAL: "' || tmp_val || '"');
      tmp_num := tmp_num + 1; 
      par_name := 'par' || to_char(tmp_num);
    END LOOP; But I have two problems:
  • How do I detect the end of the Parameter List?
  • Why does the while-condition "( tmp_val != '' ) doesnt evaluate to TRUE (even not at the beginning)?

Thanks in advance for your help,
Martin

-- 
Martin Boroske
Martin.Boroske_at_stud.uni-hannover.de
Received on Mon Aug 02 1999 - 11:03:05 CEST

Original text of this message