>I want to change a property of all the objects on a form programmatically. As in making everyting enabled -= .f. to enabled = .t.
>
>What property tells me the total number of objects on the form (tab index?) so I can write a loop from i to x to hit all the existing objects?
>
>Is there a better way to accomplish this?
>
>Thanks-
There are couple ways:
1. Use AMEMBERS(,2) to return names of objects.
2. Issue Form.SetAll("enabled",.f.) if you are sure that all objects have Enabled property.
3. Use Form.ControlCount and Form.Controls(i).Enabled=.f.
Edward Pikman
Independent Consultant