Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetAll() except when I don't want want it
Message
De
04/12/2008 23:19:43
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
04/12/2008 22:27:35
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01365578
Message ID:
01365583
Vues:
10
>We have this code that is used to set the Enabled property of controls on the page. Unfortunately the previous developer didn't account for the fact that we have some controls that are meant to always be disabled. Normally this wouldn't be an issue, but we also have an Enabled_Assign method that does some other stuff. Is there a way to exclude certain controls from being affected by the SetAll()?
>
>	WITH .pgfOptions
>		.SetAll( 'Enabled', m.lbStartEditing )
>
Do them one class at a time? So you don't enable those that are of the wrong class.

Or you can use recursion (see my recurse.prg or any other recursion thingy) and check for a few things before setting. You'd be surprised how fast can Fox traverse a form.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform