RE: Delete a row in an input array

"Bryce Stenberg" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <[email protected]>
off top of my head maybe something like:
 
AFTER FIELD abc 
    let x = arr_curr()
   IF a[x].abc = "J" THEN 
      CALL save_something(a[x].*) 
      let array_line = x
      let screen_line = scr_line()
      initialize a[x].* to NULL
      # remove blank row from array
      for i = x to size_of_array - 1
          let a[x] = a[x+1]
      end for
      initialize a[size_of_array].* to NULL
      continue input  # to redisplay new array - if doesn't redisplay
put whole thing in while loop and continue while
  END IF
 
and in your 'before input' 
    call fgl_dialog_setcurrline(screen_line,array_line)
 
to jump back to current row
 


Regards,
  Bryce Stenberg
  Harness Racing New Zealand Inc.
  IT Department. 

 


________________________________

	From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
	Sent: Friday, 16 September 2005 1:45 a.m.
	To: [email protected]
	Subject: [fourjs-users] Delete a row in an input array
	
	

	Hello List, 
	
	I have the possibility to delete an row from an array when
pressing the defined delete key. 
	
	Now In want to delete a row of an arry in the "after field" part

	
	example: 
	
	INPUT ARRAY a WITHOUT DEFAULTS FROM b 
	
	AFTER FIELD abc 
	   IF a[x].abc = "J" THEN 
	      CALL save_something(a[x].*) 
	      ###after that I want to delete the row from the array so
that it is no longer visible. 
	
	END INPUT 
	
	Any help for me ?? 
	
	Thanks in advance 
	
	
	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.