Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type( 'myForm.Controls' ) returns 'U'
Message
 
 
To
22/04/2005 15:10:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01007630
Message ID:
01007639
Views:
17
>Was looking at some code today and the developer was checking for the presense of the Controls collection by using the type() function. When debugging his code, I discovered that both the Controls and the Objects collections will return "U" when one tries to reference them via the type() function.
>
>The solution (and probably a better way to begin with) is to use pemstatus() instead.
>
>But, I'm wondering why both type( "myForm.Controls" ) and type( "myForm.Objects" ) will be both return "U" even those these objects exist?
>

Malcolm,

They're not real object but more like arrays. Anyway, there's nor reason to check there type because they're always present. The "myForm.ControlCount" and "myForm.Objects.Count" will give the number of items in each of them.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform