Puzzler (why does this error?)
Ken Ray
kray at sonsothunder.com
Sat Sep 25 20:32:06 EDT 2004
On 9/25/04 6:47 PM, "Geoff Canyon" <gcanyon at inspiredlogic.com> wrote:
> On Sep 24, 2004, at 11:08 AM, Klaus Major wrote:
>
>> Hi inspir, or may i call you Geoff? ;-)
>>
>>> This line executed in the message box:
>>>
>>> put the allowKeyInField of field id 1008 of card id 1002 of stack
>>> "Untitled 1"
>>>
>>> produces this error:
>>>
>>> Message execution error:
>>> Error description: Handler: can't find handler
>>>
>>> Any ideas?
>>
>> Yup, it's a keyword :-)
>>
>> I has no effect and is included in Transcript for compatibility with
>> imported
>> SuperCard projects.
>
> I figured that out a bit after sending this email. But why should it
> error? If it's a vestigial property as described in the docs I would
> think it should return a default value: false, since Revolution doesn't
> deliver keyInField messages.
The reason you got an error is that you were using it like a field property
- it's not, it's a global property in SuperCard. So if you say (in the
message box):
put the allowKeyInField
you get "false"; if you say:
put the allowKeyInField of field 1
you get the error you described.
HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list