Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Form Controls as a Collection
Message
 
 
À
03/04/2006 15:33:00
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Divers
Thread ID:
01110059
Message ID:
01110061
Vues:
16
with thisform
	for each loControl in .controls
		if inlist(proper(m.loControl.baseclass),'Combobox','Textbox','Commandbutton')
			store .f. to loControl.enabled, loControl.tabstop
		endif
	next
endwith
>We are doing some work on an old application written in Visual FoxPro 6. A question from one of my co-workers has me stumped. He is wondering if there is a command to cycle through all the controls on a page of a pageframe, rather than individually addressing each control. He comes from an ASP background and is used to writing code to address "collections" of controls.
>
>For example, cycle through all the controls on a page, and for any text boxes, set the font to bold, or some such thing. I told him that we would normally create a text box class and have all the text boxes inherit from that. However, it did make me wonder if there is a way to accomplish this similar to how he has described to me.
>
>Any ideas?
>
>Joel
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform