Re: Can 4GL do a NEXT FIELD to a screen array element?
Posted in 1991
Path: emory!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ucsfcgl!jekyll.ucsf.edu!brianc From: brianc@jekyll.ucsf.edu (Brian Colfer) Newsgroups: comp.databases.informix Message-ID: <20798@cgl.ucsf.EDU> Date: 21 Oct 91 17:03:31 GMT References: <1991Oct18.224210.20229@group1.UUCP> Sender: daemon@cgl.ucsf.edu Organization: University of California, San Francisco, Dept of Lab Med In article <1991Oct18.224210.20229@group1.UUCP> van@group1.uucp (Van Bagnol) writes: } I am trying to update values in a scrolling array. The problem is, I don't } want the user to scroll past the last element of the array. I want to } wrap around back to the 1st element: [...] } input array myvalues } without defaults from screenvalues.* } before row } if arr_curr() > nterms then } # } # I shouldn't have gone this far. Make me wrap around! } # What do I do? } # } next field {??????} # what is legal here? I'm not exactly sure what you should do but what you need to do is reset your screen index counter and then redisplay the array ... I think there is a set of routines in the practice db which performs a resort when you delete a row during an imput array. Modifying this routine is probably what you want. } end if [...] } end input ===== } 2. How can I set the NEXT FIELD to an element in a scrolling array ? -- Brian Colfer | UC San Francisco |------------------------| | Dept. of Lab. Medicine | System Administrator, | brianc@labmed.ucsf.edu | S.F. CA, 94143-0134 USA | Programer/Analyst | BRIANC@UCSFCCA.BITNET | PH. (415) 476-2325 |------------------------|