Detect when a field changes

Terry Judd terry.judd at unimelb.edu.au
Mon Nov 18 22:43:17 EST 2013


On 19/11/2013, at 02:17 PM, Bill Vlahos wrote:

> Well yes. That is what we have to do. Either send closeField or textChanged or whatever you want to call the handler.
> 
> The point I’m making is that I have to remember to do that everywhere I change the contents of the field via programming - everywhere I modify the script I have to put the additional line of code to call the handler.

I think I'm with those who would prefer that changing the contents of the field by script would also trigger the textChanged message. If you don't want to trigger the message then you can always lockMessages.

Terry...

> 
> On Nov 18, 2013, at 5:40 PM, Bruce Pokras <bruceap at comcast.net> wrote:
> 
>> For some reason (lost in antiquity) I have a script in which after "putting" text into a field via script I then send a "closefield" message to the field. Any idea if that would help in this situation?
> 
> _______________________________________________
> 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
> 

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne









More information about the use-livecode mailing list