ngocvo3103_1
14 years agoOccasional Contributor
Is there a shorter way to refer to a control?
Hi all,
When we call a control to work, we have to call from the parent control to the childs, sometimes, there are alot of childs to call. To make it shorter and easier to call a control, I try to assign all the controls to variables. But this only works correctly when I put the assign lines inside the current function. If I put these line outside the function, I can still use the variables inside the function, but when I put a dot "." to see what action can I use with this control, nothing shows up. Is there anything I can do to make it work correctly in this case? Please have a look in the attached pictures for more detail.
Thanks,
When we call a control to work, we have to call from the parent control to the childs, sometimes, there are alot of childs to call. To make it shorter and easier to call a control, I try to assign all the controls to variables. But this only works correctly when I put the assign lines inside the current function. If I put these line outside the function, I can still use the variables inside the function, but when I put a dot "." to see what action can I use with this control, nothing shows up. Is there anything I can do to make it work correctly in this case? Please have a look in the attached pictures for more detail.
Thanks,