Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Objects from a Form
Message
De
05/09/2005 09:14:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/09/2005 09:04:46
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01046174
Message ID:
01046773
Vues:
18
>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

Aaron,
If it's working then glad:) The code you pasted here sounds to have typos.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform