Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting fields on a form programmatically
Message
 
 
À
22/08/2008 04:38:03
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01340763
Message ID:
01341111
Vues:
17
>I think changing the visible setting is best but if you really want to remove them then you can loop through each object in the forms controlcount something like this:
>
>FOR i = 1 TO Thisform.ControlCount
> IF Thisform.Controls[i].BaseClass = "Label"
> Thisform.RemoveObject(Thisform.Controls[i].name)
> ENDIF
>NEXT
>

If you want to remove objects, you need to loop backwards.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform