Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Invisible textbox in grid
I am trying to do the following in VFP 5.0a
In a grid when field 4 of a record is greater than 100 I want the contents of field 2 of the same record not to be visible.
I have tried this:
IF thisForm.Grid1.Column4.Text1.Value > 100
thisForm.Grid1.Column2.Text1.Visible = .F.
ELSE
thisForm.Grid1.Column2.Text1.Visible = .T.
ENDIF
I have placed this code in several places but the field is always visible.
Just for the sake of it I have tried:
This.Visible = .F.
in the refresh of the textbox but it does not even work.
The only thing that works is I change the column2.visible property to .F. then everything is invisible.
So what is the use of this property in the textbox?
Thanks in advance for your help.
Raymond
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement