Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Disable or Not to Disable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00010779
Message ID:
00010781
Vues:
31
>I have a large program we use internaly to act as a cash register. I need to enable and disable constantly. Usualy this is done in sections.
>I have done my best to cut down on cade but there are at least 20 objects with 65 line of
>
>this.parent.thebutton.enabled = .F.
>
>Is ther a way to group these things
>
>like:
> disable.these.20.buttons()
>
>or
> enable.allthese.bttons()
>
>thanks
>
>sory.for.the.bad.humor()

For I = 1 To ThisForm.ControlCount
If Left(ThisForm.Controls(I).Name,3) = "btn"
ThisForm.Controls(I).Enabled=.F.
EndIf
Next

I.Hope.That.Helps()
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform