Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show as many records as possible in grid!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01094013
Message ID:
01094025
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Everybody,
>
>How may I show as many records as possible in a grid when I go to a record let’s say nMyrecord. Right now it only shows the nMyrecord record and the records after that one, so the user might think they are the only records. I want to have nMyrecord as the focused record but be able to see as many records as possible.
>
>In the init of my form I have:
Goto nMyrecord
>
>Thank you,
>Ali

Ali, What you need to do is start the form with a record showing that is about 10-15 before the desired one. Then in the gotfocus of the form you can:

goto myrec
thisform.refresh()

This should put Myrecord in the middle of the grid. Depending on the form and grid this might not always work but most of the time it has for us.
HTH
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform