Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current control
Message
De
01/10/1998 12:31:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00142885
Message ID:
00142893
Vues:
30
>>I am trying to save the current value of a control. For example:
>>
>>THISFORM.PageFrame1.Page1.cmdAdd1.Enabled = .F.
>>
>>I would like to save the current value of .F. and then be able to change the control back once I return to page 1 from page 2.
>>
>>TIA,
>
>Not sure why but you could do something like:
>
>THISFORM.PageFrame1.Page1.cmdAdd1.Enabled = !THISFORM.PageFrame1.Page1.cmdAdd1.Enabled
>
>I do not know what storing .t. of .f. will gain you. I also don't see the benefit of disabling a button on a page the user can no longer see unless they reactivate the page, at which point you re-enable the button anyway. If the button was on the form instead of the page, disabling/enabling becomes relevant.

Actually, it's a series of command buttons some of which are used by both pages but not all. I found it much more user friendly doing it this way.
William Chadbourne
Senior Programmer/Analyst
State of Maine - DAFS App Team

Oracle - When you care enough to use the very best!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform