Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro Grid bug
Message
From
11/06/1999 11:18:28
 
 
To
11/06/1999 11:01:33
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00228799
Message ID:
00228809
Views:
13
>For some reason when I delete all the records in the grid, the last record will stay on the grid or reappear later. Once I click on the grid, the record vanishes. I looked on Microsoft's site but they didn't mention any kind of bug that fit this behavior. Anybody know a dependable workaround for this problem.
>Alex

Alex,

I remember running into this one too. As I recall, it was also the case that if you deleted the record which appeared as the first row in a grid, the deleted record still showed in the grid. One way around this behaviro is to move the record pointer off the deleted record (and back, if you want to), then refresh the form or at least refresh the grid. The code might look something like this:
with thisform
   .lockscreen = TRUE
   local lnRecno
   lnRecno = recno()
   if eof()
      skip -1
   else
      skip
   endif
   go lnRecno
   .lockscreen = FALSE
   .refresh()
endwith
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform