Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Danson Danson
  Where is Danson Danson?
 Nairobi
 Kenya
 Danson Danson
 To: kulwant singh
  Where is kulwant singh?
 Shimla
 India
 kulwant singh
 Tags
Subject: RE: Grid in VFP 9.0
Thread ID: 233127 Message ID: 233170 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Tuesday, June 30, 2009 1:54:41 PM         
   


> > 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



COMPLETE THREAD
Grid in VFP 9.0 Posted by Danson Danson @ 6/30/2009 8:30:07 AM
RE: Grid in VFP 9.0 Posted by kulwant singh @ 6/30/2009 9:26:03 AM
RE: Grid in VFP 9.0 Posted by Danson Danson @ 6/30/2009 1:54:41 PM
RE: Grid in VFP 9.0 Posted by Stefan Wuebbe @ 6/30/2009 9:58:13 AM
RE: Grid in VFP 9.0 Posted by Danson Danson @ 6/30/2009 11:32:07 AM
RE: Grid in VFP 9.0 Posted by Stefan Wuebbe @ 6/30/2009 3:17:47 PM
RE: Grid in VFP 9.0 Posted by Danson Danson @ 6/30/2009 4:14:34 PM
RE: Grid in VFP 9.0 Posted by Stefan Wuebbe @ 6/30/2009 5:10:05 PM
RE: Grid in VFP 9.0 Posted by ron philippo @ 7/1/2009 7:39:00 PM
RE: Grid in VFP 9.0 Posted by Stefan Wuebbe @ 7/1/2009 7:50:40 PM
RE: Grid in VFP 9.0 Posted by Anders Altberg @ 6/30/2009 10:09:52 AM