You cannot set a behavior to a field. It has to be a button. I asked about this when behaviors first were introduced. Trevor gave me some answer as to why, but I forget what it was now. <coughsenilecough>
Bob On Jul 19, 2012, at 5:20 PM, Dr. Hawkins wrote: > I've been trying all day to get behavior, to work, and can't > > set the behavior of grp "grp_cmbIncome" of card "meansTestIncome" to > the long id of fld "ctr_calcPop" of cd 1 of stack "mcp" > > produces an execution error at line n/a (parentScript: bad object) > near "field id 2081 of cd id . . . > > > It only mentions the error the first time the script in preOpenStack > runs; otherwise it just jumps to the end of that handler with no > message. > I > If I change it to refer to a field in the same stack, same problem. > If I remove "the long id" to refer direxctly to the field, > it executes, but the handlers of that field are never reached, anyway. > > Am I doing something wrong? > -- > The Hawkins Law Firm > Richard E. Hawkins, Esq. > (702) 508-8462 > hawkinslawf...@gmail.com > 3025 S. Maryland Parkway > Suite A > Las Vegas, NV 89109 > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode