kurtzman@pollux.usc.edu (Stephen Kurtzman) (12/19/88)
I just got a copy of HC 1.2.2 and tried the "find" handler example that Dan Allen posted. The "params" is not returned/translated properly by HyperCard. Try the following: 1) Create a stack with 2 different backgrounds. Put 1 background field on the first and two background fields on the second. 2) Put the following handler at the stack level: on find put the params end find 3) Go to a card with the first background (the bg with one field) and type the following into the message box: find "foo" in field 2 The find handler will then put the following in the message box: find normal "foo" in bkgnd field 0 When HyperTalk translates the find command it seems to be using the current background as a "model". If the current background has fewer fields than the field number used in the find command, then params translates the field number to zero. This is clearly wrong since the find command is not background specific. And it is a fatal bug for one of my applications where I have a stack with different backgrounds with differing numbers of fields. Dan, I hope you're listening, this sounds like one that slipped through the cracks.
kurtzman@pollux.usc.edu (Stephen Kurtzman) (12/19/88)
In article <14136@oberon.USC.EDU> I write: >This is clearly wrong since the find command is not background specific. I forgot to say: Please add the following to the wish list: A background specific find. As in: find "foo" in field 2 on background 1