Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Rajesh Kumar
  Where is Rajesh Kumar?
 Chandigarh
 India
 Rajesh Kumar
 Tags
Subject: Column Movement problem in grid
Thread ID: 33930 Message ID: 33930 # Views: 4 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Friday, December 05, 2003 5:36:19 AM         
   


Hi all

I have created a data entry program in vfp 6. This uses a grid for detail section. There are 10 columns in the grid. All columns are readonly except column 4 and column 5. I want my user to navigate through ENTER KEY for next column. if on col. 4 then move to col. 5, if on col. 5 then move onto col. 4 of next row. I am using this code in the AfterRowColEdit event of grid

LPARAMETERS nColIndex
select tmporder && NAME OF TEMPORARY TABLE USED AS BASE FOR GRID
if nColIndex > 5
if thisform.grddetail.activerow > 8
keyboard "{DNARROW}"
endif
if !eof()
thisform.grddetail.activatecell(recno()+1,4) && IF NOT EOF THEN MOVE TO COL. 4 OF NEXT ROW
else
thisform.grddetail.activatecell(recno(),4) && IF EOF THEN STAY AT COL. 4 OF CURRENT ROW
endif
thisform.grddetail.column4.text1.setfocus
doevents
endif

Grid has 9 visible rows on the screen. This code works perfectly upto 9 rows. When it comes to 10th row of the grid, it stops working. I understand I am missing something important here. Please point me to that important link.

Thanks in advance


Raj

ENTIRE THREAD

Column Movement problem in grid Posted by Rajesh Kumar @ 12/5/2003 5:36:19 AM
RE: Column Movement problem in grid Posted by Lucy Alice Pilanga @ 12/5/2003 6:00:27 AM
RE: Column Movement problem in grid Posted by Rajesh Kumar @ 12/5/2003 10:42:30 AM