Hi Sri, Try this:
on mouseUp put the width of field "Field1" put the width of (field "Field1") end mouseUp but put this script in a button, not the message box! This should give you the trick. HTH, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-07-25 16:22 GMT+02:00 Sri <sri...@gmail.com>: > The parenthesis placements are key in such references as they change the > order of command processing. > > For example: > 1. Create a button "Test1" of width 82 (say) > 2. Create a field "Field1" of width 168 (say) containing the text: /button > "Test1"/ > 3. Type into message box > put the width of field "Field1" > Answer: 168 > 4. Type into message box > put the width of (field "Field1") > Answer: 82 > > Regards, > Sri > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Referencing-a-control-name-tp4694325p4694334.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > 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