>Yes I agree with you that I can redemension array, add record, and etc. However, I am not adding controls into the form. I am trying to find out all the existing objects in a form. I do not know what the best way to find all the controls.
>
>EG:
>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).
>
WITH thisform
LOCAL nObjCount
nObjCount = 0
FOR EACH oObject IN .OBJECTS
nObjCount = nObjCount + 1
ENDFOR
Brute force, but it works...
If you're interested in the Controls and not the Objects, there is a ControlCount property of the Form as a simple property.