1. is this a bug??

The beginnings of a program change had the following coded mistake but there
was no warning, or error..here's the code snippets, can you see the mistake?
It took me quite a while.

procedure pickList1()
 openWindow(pickWindow[1],Normal)
end procedure
procedure pickLIst2()
 openWindow(pickWindow[2],Normal)
end procedure
procedure pickList3()
 openWindow(pickWindow[3],Normal)
end procedure
procedure pickList4()
 openWindow(pickWindow[4],Normal)


onClick[pkButton[1]] = routine_id("pickList1")
onClick[pkButton[2]] = routine_id("pickList2")
onClick[pkButton[3]] = routine_id("pickList3")
onClick[pkButton[4]] = routine_id("pickList4")


...george

new topic     » topic index » view message » categorize

2. Re: is this a bug??

George,

Yes,  your finger slipped, so your procedure "pickLIst2()" has a CAPITAL
"i", but your
"routine_id("pickList2") " does NOT have the "i" in "List" capitalized.

I see this in my own code a lot, which is why I like to use "copy/paste" as
much as I can.

Dan Moyer

----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, August 17, 2001 2:56 PM
Subject: is this a bug??


>
> The beginnings of a program change had the following coded mistake but
there
> was no warning, or error..here's the code snippets, can you see the
mistake?
> It took me quite a while.
>
> procedure pickList1()
>  openWindow(pickWindow[1],Normal)
> end procedure
> procedure pickLIst2()    <--------------------  "i" is capitalized
>  openWindow(pickWindow[2],Normal)
> end procedure
> procedure pickList3()
>  openWindow(pickWindow[3],Normal)
> end procedure
> procedure pickList4()
>  openWindow(pickWindow[4],Normal)
>
>
> onClick[pkButton[1]] = routine_id("pickList1")
> onClick[pkButton[2]] = routine_id("pickList2")   <----------"i" is NOT
captalized
> onClick[pkButton[3]] = routine_id("pickList3")
> onClick[pkButton[4]] = routine_id("pickList4")
>
>
> ...george
>
>
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu