Re: Antwort: input array - insert line

"Andrea De Angeli" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <000901c4f963$f2a6e940$010b010a@pcnt1>
Easier, put the input array in a while loop. When you decide to insert a new line, put it in your memory array, then exit input and reenter it - it's a classic 4gl trick.

You can enhance it by using the fgl_setcurline function to put the cursor in the newly inserted line.

HTH

Andrea
  ----- Original Message ----- 
  From: [email protected] 
  To: [email protected] 
  Sent: Thursday, January 13, 2005 12:08 PM
  Subject: Antwort: [fourjs-users] input array - insert line



  Hey, 
  It is an problem with the set_count() function. that function sets arr_count() the number of rows in an array. 

  When you set the attribute count in the display array (larger than set_sount()) then you can generate an inserted line. 

  INPUT ARRAY arrayname 
  WITHOUT DEFAULTS FROM s_array.* 
  ATTRIBUTE ( COUNT= lo_x) 
  BOLD, UNDERLINE, 
  CURRENT ROW DISPLAY = "RED, REVERSE") 

  (see  fjs-man-f4gl-3.20.1e.pdf page 173) 

  An other possibility is to wirte the array in an temp -table, insert the new row in the temp-table , delete the array and then read the temp-table again into the array. 


  hth 

  Stefan Serwe

  KOFU Tiernahrung Kottmann GmbH
  EDV-Abteilung
  Danziger Strasse 3-5
  41460 Neuss
  Tel.: +49 2131 181 202
  Fax: +49 2131 181 204
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.