Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid bottom
Message
De
22/07/2008 08:28:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01333075
Message ID:
01333083
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>If I use append blank, the grid goes to its BOTTOM
>That's OK
>
>However, it I use the commands below, the grid stays on TOP
>I expected it going to bottom and then showing the last record,
>and also some more records in the grid
>
>SELECT emails
>SET FILTER TO tipo = " "
>
>GO TOP
>
>LOCATE
>
> thisform.Refresh

Why did you expect it to go to bottom? You're explicitly telling it to go to 'top' twice and then refreshing. Are you trying to do something like this?
With Thisform.myGrid
 Select (.RecordSource)
 Go Bottom
 .Refresh
 .SetFocus()
 local lnRows
 lnRows = (.Height - .HeaderHeight - Iif(.ScrollBars%2=1,Sysmetric(8),0)) / .RowHeight
 For ix=1 To ( m.lnRows - .RelativeRow)
  .DoScroll(0)
 Endfor
Endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform