Re: Referencing a control name

2015-07-25 Thread Peter Bogdanoff
Thank you to all that replied to my question--my learned and esteemed colleagues! I got an education, and got the job done! Thanks again, Peter Bogdanoff UCLA On Jul 25, 2015, at 11:49 AM, J. Landman Gay jac...@hyperactivesw.com wrote: On 7/25/2015 9:22 AM, Sri wrote: The parenthesis

Re: Referencing a control name

2015-07-25 Thread Sri
Hi Thierry: It does exactly the same as my example - whether you put it in a button or from the message box. It refers to the field object without the parenthesis, and to the button object with parenthesis. This is due to the fact that the parenthesis is evaluated before the rest, as I had hinted.

Re: Referencing a control name

2015-07-25 Thread Sri
Wprothero wrote Sri It may be bad practice to use the word field in the name of a field. However, i suspect there's more to it. Hi Bill: This is just a quick example I contrived to prove a point. I never use field for a field's name; I give (very) descriptive names to my objects! Regards,

Re: Referencing a control name

2015-07-25 Thread Thierry Douez
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 -

Re: Referencing a control name

2015-07-25 Thread Sri
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

Re: Referencing a control name

2015-07-25 Thread EED-wp Email
Sri It may be bad practice to use the word field in the name of a field. However, i suspect there's more to it. Bill William Prothero http://ed.earthednet.org On Jul 25, 2015, at 8:22 AM, Sri sri...@gmail.com wrote: The parenthesis placements are key in such references as they change the

Re: Referencing a control name

2015-07-25 Thread J. Landman Gay
On 7/25/2015 9:22 AM, Sri wrote: 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

Re: Referencing a control name

2015-07-24 Thread Mark Schonewille
First put the reference into a variable and then Set the width of myVar to x -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 25 jul. 2015 om

RE: Referencing a control name

2015-07-24 Thread Ralph DiMola
Also control is a synonym for field, button, image. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Friday, July 24, 2015 8:06 PM

Re: Referencing a control name

2015-07-24 Thread Dick Kriesel
On Jul 24, 2015, at 5:05 PM, Peter Bogdanoff bogdan...@me.com wrote: I want to reference that data like this: set the width of item 1 of line 1 of field “MyField” to item 2 of line 1 of field “MyField” How do I script the stuff inside the ? Sometimes that item will be a