Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button refresh
Message
De
10/03/2003 19:45:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/03/2003 18:34:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00763995
Message ID:
00764010
Vues:
19
>I am attempting to refresh a button based of a text box having value in it. If it has a value, then I want the button to enabled. and the reverse to happen as well. the text box is displaying information from a list box and refreshes everytime the user scroll through the list box...can any assit
>
>here is sample code:
>
>IF EMPTY(ThisForm.M101AReq.value) OR ThisForm.M101AReq.value = 0
> ThisForm.Btn_M101a2.Enabled = .f.
>ELSE
> ThisForm.Btn_M101a2.Enabled = .T.
>ENDIF

This is basically correct. Of course, considering that a value of zero is considered empty, you can simplify this to:
ThisForm.Btn_M101a2.Enabled = not empty ThisForm.M101AReq.Value
HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform