Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Objects from a Form
Message
De
05/09/2005 09:04:46
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
À
05/09/2005 06:29:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01046174
Message ID:
01046770
Vues:
12
Thank you very much!

In fact, it develops from Borislav Borissov's suggestion, to get it done. Thank you! Cetin, this time I understand completely you're doing, but I tried to paste the custom method in the form, then evoke the method... the controls were not removed, may be it is about the name formation...

however, I developed from your idea as follows:
LPARAMETERS class_name

x = thisform.Controlcount
FOR n = 1 TO thisform.Controlcount
    IF UPPER(thisform.Controls(x).Class) == UPPER(class_name)
       thisform.RemoveObject(thisform.Controls(x).Name)
    ENDIF
    x = x - 1
ENDFOR
Although it is not the quickest to do it, it works fine. My goal is to find a command like, Thisform.SetAll('delete','nEditBox') whereas 'delete' is action & 'nEditBox' is the class of controls belonged to...

Thanks very much
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform