> > Hi foxie members, thanks men for your help, God bless you all.
> > I have a problem
> > i have this grid in VFP 9.0 that contains several students records. I want when i enter the marks ie a numeric value like 68 or 56 or 89 etc, the grid column called grade should grade that value approriately eg Pass, Credit, or Distinction, i have included this code in the column.header.text-click method. The grid is working well in grading but the problem is that when i click in the next grid row then the value in the upper row is inserted in the current row ie the clicked row. How can i solve this
> > Thanks
> > Be heard and be seen
>
> Take a look at the SET CARRY OFF command in Help.
> May be that will solve your problem.
>
> kulwant
Hi Kulwant,
Sorry, it didnt work but thanks alot
This is the problem
I have a form with a grid eg grid1. In the click prodedure of grid1 in column4, i have this code.
WITH THISFORM
DO CASE
CASE .grid1.column3.text1.value>80
thisform.grid1.column4.text1.value="Distinction"
CASE .grid1.column3.text1.value>=70
thisform.grid1.column4.text1.value="Credit"
CASE .grid1.column3.text1.value>=55
thisform.grid1.column4.text1.value="pass"
CASE .grid1.column3.text1.value<55
thisform.grid1.column4.text1.value="Fail"
ENDCASE
ENDWITH
The code is working well, but when i move to the next cell in the next row, the value of the upper cell is inserted into this new cell and not a new value eg a new grade. The grade should change depending on the value of marks in a given cell
I hope you got it now.
thanks