Re: Getting the long name(or ID) of a control

2016-01-27 Thread Richard Gaskin
Ralph DiMola wrote: > Riddle me this Batman: > > I have 2 controls named "F1"(field) and "menu"(button) both in > a group named G1 > > Why does this work... > put "F1" into somevar > put the long name of control somevar into someothervar > > But this does not work... > put "F1 of group G1" in

Re: Getting the long name(or ID) of a control

2016-01-27 Thread Mark Wieder
On 01/26/2016 10:47 PM, J. Landman Gay wrote: You'd probably never notice a few unquoted literals, but if they're everywhere it makes a difference. You'd notice if you enabled strict compilation mode. Or rather, the compiler would help by noticing for you. -- Mark Wieder ahsoftw...@gmail.

Re: Getting the long name(or ID) of a control

2016-01-26 Thread J. Landman Gay
On 1/27/2016 12:15 AM, Scott Rossi wrote: I think it was Jacque who pointed out a while back that quoting control names results in slightly faster execution, since the engine doesn't need to determine if your word is a variable or an object name. I don't know if it was me, but it's true and in

Re: Getting the long name(or ID) of a control

2016-01-26 Thread Scott Rossi
What Colin said. You CAN use unquote object names, but I think it was Jacque who pointed out a while back that quoting control names results in slightly faster execution, since the engine doesn't need to determine if your word is a variable or an object name. Ever since that explanation, I starte

Re: Getting the long name(or ID) of a control

2016-01-26 Thread Monte Goulding
Yes menu is a keyword. The rest is just what the parser can and can’t cope with. > On 27 Jan 2016, at 4:04 PM, Ralph DiMola wrote: > > Riddle me this Batman: > > I have 2 controls named "F1"(field) and "menu"(button) both in a group named > G1 > > Why does this work... > put "F1" into some