Re: problem with after input
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WFhO2iKvgfbrXgHNS04qkAnv6e-a77-ZxUicNaf0Mso0g@mail.gmail.com> |
This is the expected behaviour - I'm sure in informix - the After Input triggers on ACCEPT and INTERRUPT. The normal pattern is : AFTER INPUT IF int_flag=false THEN ... END IF END INPUT eg. from http://debian.fmi.uni-sofia.bg/~tomecks/Inf/ch38.htm : "after input is executed when the user presses any of the keys that terminate input (Accept, Interrupt, or Quit) but before input is actually terminated." On 2 March 2015 at 15:35, Alain Siverly <[email protected]> wrote: > Hi, > > maybe we were not that clear at all in our explanation. Next try :-) : > If we leave the Input Array with "Cancel" instead with "OK" then the After > Input runs anyway. We think, that A4GL should interrupt the Input Array and > not go ahead. In the Display Array the behavior is correct: If the User > interrupts then the After Display does not run. > > Thank you in advance! > > Alain > > VENTAS AG 25 Jahre ERP-Erfahrung! > Web: www.ventas.de > Fon: 040 / 32 33 34 0 > Fax: 040 / 32 33 34 38 > Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland > Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712 > Vorstandsvorsitzender: Dipl. Ing. Alain Siverly > Aufsichtsratsvorsitzender: Dr. Olaf Rehme > > Am 27.02.15 um 17:04 schrieb Mike Aubury: > > You probably have : > > A4GL_DISPLAYLOCAL=Y > > set > > > > On 27 February 2015 at 15:29, Daniel Kroker <[email protected]> wrote: > >> Hi, >> >> every time i leave the input array the after input display is in the >> shell: >> >> ./a >> AFTER INPUT******************* >> >> but the vdc doesn't send the triggered with the id from after input >> after input has id 1 and the vdc sends: >> >> <TRIGGERED LASTCURSOR="1" INFIELD="test1" ARRLINE="1" SCRLINE="1" >> ENVELOPEID="4" BUFFERTOUCHED="0" ID="INTERRUPT" ARRCOUNT="1"> >> >> why can i see the display from the after input event in the shell? >> >> Example: >> main.4gl: >> >> MAIN >> DEFINE a_screen ARRAY[13] OF RECORD >> test1 CHAR(20), >> test2 CHAR(20) >> END RECORD >> >> OPEN WINDOW w_1 WITH FORM "main" >> >> INPUT ARRAY a_screen FROM s_ar_screen.* >> AFTER INPUT DISPLAY "AFTER INPUT*******************" >> END INPUT >> END MAIN >> >> main.per: >> >> DATABASE formonly >> >> LAYOUT >> VBOX >> TABLE >> { >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> [test1 | test2 ] >> >> } >> END >> END >> END >> >> >> ATTRIBUTES >> >> test1 = FORMONLY.test1; >> test2 = FORMONLY.test2; >> >> INSTRUCTIONS >> DELIMITERS " " >> >> SCREEN RECORD s_ar_screen[13] (FORMONLY.test1 THRU FORMONLY.test2) >> >> Regards >> Daniel >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Aubit4gl-discuss mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss >> > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Aubit4gl-discuss mailing [email protected]://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss