Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type( 'myForm.Controls' ) returns 'U'
Message
 
 
À
22/04/2005 15:10:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01007630
Message ID:
01007639
Vues:
18
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform