artificially causing a field to be left in a script
dunbarx at aol.com
dunbarx at aol.com
Tue Sep 25 23:32:45 EDT 2012
Hi, again.
But if you change the contents of a field, and then leave the card, closeField is sent.
I made a field, and put this into its script:
on closeField
put random(99) && the target
end closeField
I typed into the field, and then left the card (via CMD-3). A number appears in the msg box, followed by the field descriptor.
Is this not what you needed?
Craig
-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Tue, Sep 25, 2012 11:16 pm
Subject: Re: artificially causing a field to be left in a script
On Tue, Sep 25, 2012 at 8:13 PM, <dunbarx at aol.com> wrote:
> Can't you use "exitField"?
No; that only applies if the field is exited without change--and I
only care about the case where the field has changed, but the card is
left before leaving the field.
When that happens, I want the closefield behavior for that field to happen.
--
Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list