Dear all,
in a control grid:
CODE NAME PRICE NEW
125 Name1 1.25 .F.
135 NAME2 1.35 .F.
148 Name3 2.78 .T.
...................................
.............................
How to disactivate the lines only of which the value of the logical field NEW=.F. and to let the other (NEW =.T.) active in a control grid.
I have tried to write: ( in the refresh of THISFORM.GRID.COLUMN1.TEXT1)
IF THISFORM.GRID.COLUMN4.TEXT1.VALUE
THISFORM.GRID.COLUMN1.ENABLED=.F.
THISFORM.GRID.COLUMN2.ENABLED=.F.
THISFORM.GRID.COLUMN3.ENABLED=.F.
ELSE
THISFORM.GRID.COLUMN1.ENABLED=.T.
THISFORM.GRID.COLUMN2.ENABLED=.T.
THISFORM.GRID.COLUMN3.ENABLED=.T.
ENDIF
but it don't work fine.
THANKS
MISTRAL
in a control grid:
CODE NAME PRICE NEW
125 Name1 1.25 .F.
135 NAME2 1.35 .F.
148 Name3 2.78 .T.
...................................
.............................
How to disactivate the lines only of which the value of the logical field NEW=.F. and to let the other (NEW =.T.) active in a control grid.
I have tried to write: ( in the refresh of THISFORM.GRID.COLUMN1.TEXT1)
IF THISFORM.GRID.COLUMN4.TEXT1.VALUE
THISFORM.GRID.COLUMN1.ENABLED=.F.
THISFORM.GRID.COLUMN2.ENABLED=.F.
THISFORM.GRID.COLUMN3.ENABLED=.F.
ELSE
THISFORM.GRID.COLUMN1.ENABLED=.T.
THISFORM.GRID.COLUMN2.ENABLED=.T.
THISFORM.GRID.COLUMN3.ENABLED=.T.
ENDIF
but it don't work fine.
THANKS
MISTRAL