Re: next bug
- Posted by Irv Mullins <irvm at ellijay.com> Jul 27, 2001
- 390 views
----- Original Message ----- From: <gwalters at sc.rr.com> > I've a screen with a button "exit" and setup the control to go to > "processExit" procedure....when I click the button nothing happens...what > have I left out? > > -------------- Exit Button -------------------------------- > procedure processExit() > closeWindow(ARF020) > end procedure > > ----------------- Setup process control -------------------- > for i = 1 to length(lbt) do > onClick[lbt[i]] = routine_id(buttonProcess[i]) if onClick[lbt[i]] < 1 then printf(1,"Error at button %d\n",i) printf(1,"Assigned id %d\n",routine_id(buttonProcess[i]) printf(1,"Process name: %s\n",buttonProcess[i]) end if > end for Temporarily add the lines above to see where it goes wrong. I suspect it will report an assigned id of -1. If so, then it probably has to do with the way you are storing or accessing buttonProcess[i]. Regards, Irv > the exit is lbt[1] and has value 'P' and buttonProcess[1] is 'processExit' > so....it looks correct but I have overlooked something... > > ..george