Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms
Message
From
27/01/2000 15:26:54
 
 
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:
00323776
Views:
27
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform