Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why EOF crash in grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00049859
Message ID:
00049860
Vues:
48
>This code segment is in a grid BeforeRowColChange to handle keyboard moves for highlighting. The page up works fine, but page down has an EOF crash:
>
>case lastkey_fn = 18  && page up
>  skip -10
>  if bof()
>    go top
>  endif
>case lastkey_fn = 3  && page down
>  skip 10
>  if eof()
>    go bottom
>  endif
>
>The code works fine outside of grid, and up/down arrows work fine in grid also. Any ideas?

Is is possible your grid as a relation? Am I right to say that it crashes on the skip 10 line?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform