upDateField

Chipp Walters chipp at chipp.com
Wed Oct 27 02:14:37 EDT 2004


Hershel,

If you want to fire off a handler each time you 'put' text in a field, 
use the setProp handler.

Here's how it works. Instead of putting data into a fld, set a 
customProp for the field:

set the myText of fld "fred" to "hello world"

then have a setProp handler which does the following each time the 
property "myText" is set:

setProp myText pStr
   put the short name of the target into tFld
   put pStr into fld tFld
   --> DO CUSTOM STUFF TO FLD tFld HERE
end myText

Note, you can put the setProp handler in the card or stack script and it 
will work with all your fields on the card or stack. You can also Pass 
the myText handler if you want to keep the data in the property. The 
above handler never allows the myText property to actually get 'set'.

hope this helps,

best,
Chipp


Hershel Fisch wrote:

> Hi , is there some kind of upDateField message that should trigger when 
> a fld is updated by a "put" command ?
> Thanks , Hershel


More information about the use-livecode mailing list