Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro Grid bug
Message
 
 
À
11/06/1999 11:01:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00228799
Message ID:
00228809
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform