Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Better way of coding this
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01367822
Message ID:
01367891
Views:
8
You don't have to use macros at all. Just use GETPEM function instead to get an object reference.

>OK, you didn't say in which way you wanted to "improve" the example code. So now you're saying there may be 1 - x textboxes, depending on "what was defined in the INIT of the instance"? Well do the loop THAT many times then.
>
>I imagine macro subs and one loop, with one defo would be better than 10, with only x used depending on "what was defined in the INIT of the instance".
>
>Also, I HATE repetition of the scope of an object within all its containers. It makes the code ugly and harder to read, as well as you have really long statements, sometimes going off the A4 page.
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform