Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms
Message
 
To
27/01/2000 14:57:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Forms
Miscellaneous
Thread ID:
00323717
Message ID:
00323941
Views:
22
>myform.objects(1)
>myform.objects(2)
>.
>myform.objects(n)
>
>
>Where can I find the value "n" in the form? "n" should be a representation of the total objects store in the form (myform).

Gan,

You don't need the value of n, use a FOR EACH/ENDFOR loop. It's in the help file and it will iterate through a collection without telling it how many items are in the collection.
FOR EACH oCont IN Thisform.Controls
    oCont.Name = oCont.Name + "123"
ENDFOR
Ed is right in that you must recursively process such objects as Grids, PageFrames, Pages, Containers, etc. because they contain objects inside of themselves.
Previous
Reply
Map
View

Click here to load this message in the networking platform