Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enable and disable buton on form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00458546
Message ID:
00458562
Vues:
24
>I ahve a form with several command buttons. All are enabled by default. I have one that I disabled in the propeties for the button. I don't quite understand the how to enable the button if say cUseName="RJOHSNON" I did this int the INT Method of the button:
>
>If cUserName="RJOHNSON"
>
>cmdClose_accounts.enable= .T.
>
>endif
>
>I get an error for this code. I even tried OBJECT.ENABLE= .T. Still I get an error. I still don't quite understand using this type of command. A little help please.
>
>Thanks for your help and Happy New Year!

If what you're trying to do is enable the button in it's Init method, then you would do:
IF cUserName="RJOHNSON"
  THIS.Enabled = .T.
ENDIF
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform