1. next bug

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])
end for

the exit is lbt[1] and has value 'P' and buttonProcess[1] is 'processExit'
so....it looks correct but I have overlooked something...

..george

new topic     » topic index » view message » categorize

2. Re: next bug

----- 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

new topic     » goto parent     » topic index » view message » categorize

3. Re: next bug

you're right here's the statement that assigns buttonProcess, they're all -1

 sequence  button,buttonText,buttonProcess
 button = {1,2,3,4,5,6}
 buttonText = {"E&XIT","&NEXT","&PREV","&FIND","&ADD","&SETTAB"}
 buttonProcess =
{"processExit","processNext","processPrev","processFind","processAdd","proce
ssSettab"}

I don't see what's wrong with this assignment. Would not buttonProcess[1] be
'processExit' ??

..george


----- Original Message -----
From: "Irv Mullins" <irvm at ellijay.com>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, July 27, 2001 1:48 PM
Subject: Re: next bug


>
>
>
> ----- 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
>
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu