Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Count in a Form
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00500662
Message ID:
00500728
Views:
22
>Hi Ya'll !
>
>I was checking out some code on the NET... and went to Pinter's site... and was playing with some code there....
>
>http://www.lespinter.com/ Learning Center #229 Object Oriented Programming In VFP...
>
>and when I tried the sample code there... it refered to a property called..
>
>THISFORM.Objectcount
>
>My VFP 6 did not like that at all!! I tried to search for this property, but no luck....
>
>What is wrong???
>
>How do I get a count of the objects in a form then?
>
>Thanks!!!
>
>Tommy

There is no ObjectCount property but there is a ControlCount property that will give you the number of first level controls contained in the container.

In addition, these are collections and not arrays. As such the array function ALEN() will throw an error if you attempt to use on either of these form properties.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform