Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining number of objects in a form
Message
From
22/11/1999 19:43:18
Jorge Haro
Independent Consultant
Juarez, Mexico
 
 
To
22/11/1999 19:34:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00294135
Message ID:
00294155
Views:
26
>You put your finger on it, actually. The objects collection is a collection and not really an array. The info in the debugger is erroneous.

And the helpfile calls it an array too, talk about misleading, there's just one mistery left then, why isn't the DE in the Objects a..oops, collection?.

>Instead of using ALEN, you would check the .ControlCount property which will tell you how many controls are in the collection. (As Erik pointed out, it doesn't tell you about the controls with containers, though.)

I guess while looping through the objects I'd have to check for a ControlCount larger than 0, and have the function call itself, right?, I've never tried recursion in VFP, I'll have to check that message Erik mentioned, if I can get to it that is :).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform