Handling Key Messages
Mark Schonewille
m.schonewille at economy-x-talk.com
Fri Jul 28 09:53:40 EDT 2006
Probably, you can't compile because you need to use quotes:
on rawKeyUp theKey
if theKey is among the items of "65293,65289,65421" or \
theKey is an integer
then
lock screen
updateCalculation
unlock screen
end if
end rawKeyUp
Bestm
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Download ErrorLib at http://economy-x-talk.com/developers.html and
get full control of error handling in Revolution.
>
>
>
> Op 28-jul-2006, om 14:52 heeft Gregory Lypny het volgende geschreven:
>
>> Hello everyone,
>>
>> I seem to be spending so much time doing complex calculations,
>> that I'm fumbling with some basic interface stuff. I have a card
>> that does some basic stats. I want the user to be able to enter
>> numbers in fields, and every time a number is entered, or when
>> they hit Enter, Tab, or Return, I want all the number fields to be
>> updated according to a handler and the cursor to enter the next
>> field. I have the fields set to autotab.
>>
>> Does the following look about right? It works, but is a little
>> slow in my opinion.
>>
>> (On a related issue, why is it that I get an error [can't find the
>> handler] when I try to send an EnterInField or similar message to
>> a field?)
>>
>> on rawKeyUp theKey
>> if theKey is among the items of (65293,65289,65421) or \
>> theKey is an integer
>> then
>> updateCalculation
>> end if
>> end rawKeyUp
>>
>> Any thoughts are most appreciated.
>>
>> Regards,
>>
>> Gregory
More information about the use-livecode
mailing list