On Mon, Jan 12, 2009 at 9:51 AM, william humphrey <[email protected]> wrote:
> Simpler frustration. Please why doesn't this do what I'm expecting?
>
> *on* returninfield
>   *if*  field id 1045 of card id 1002 of stack "BLEdit" of stack "clients"
> is the focusedObject *then*
>      *pass* returninfield
>   *else*
>      returnkey
>   *end* *if*
> *end* returninfield
>
> When I hit a return key in field id 1045 it sends "returnkey",  what I'm
> trying to do is send "returnkey" no matter what field the cursor is in
> except for field id 1045 which has more then one line and which needs to
> allow returns.

I prefer to use "the target" and would suggest something like this:

on returnInfield
    if the long id of the target = field id 1045 of card id 1002 of
stack "BLEdit" of stack "clients" then
        pass returninfield
    else
        returnkey
    end if
end returnInfield

(watch for line wrap on the 2nd line).

HTH,
Sarah
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to