upDateField

Hershel Fisch hershrev at realtorsgroup.us
Wed Oct 27 14:33:53 EDT 2004


Thanks, Hershel
On Wednesday, October 27, 2004, at 02:14 AM, Chipp Walters wrote:

> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list