On 8/4/12 5:37 PM, Dr. Hawkins wrote:
My real need is the very narrow issue of a handler pulling the value
of the field that called it, and then putting something back in. It
seems that this should take one line of code, not 8 or 10.
The more I think about it, the less I think "the target" is what you
want. The target is the the first object to receive a message in a
sequence of events; in this case the field is not receiving any
messages, it is generating them.
Instead of having the generic handler try to figure out the object
reference, it should receive it in a parameter. The field should call
the handler using something like this:
doAdd the long name of me
The generic handler then does this:
on doAdd pFldLongName
put the value of pFldLongName + 45 into pFldLongName
end doAdd
--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode