Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling grids
Message
De
28/05/1998 13:53:44
 
 
À
28/05/1998 13:49:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00102792
Message ID:
00102815
Vues:
30
>>Thanks Cetin;
>>But what am I doing wrong. I'm trapped in an endless loop. I stop
>>the program and check the value of grid.relativerow and it's 0.
>Becky,
>Sorry it would be doscroll(1). In debugger it would be always 0. It works when grid has focus. If you want to do it from outside of grid ie: commandbutton.click:
with thisform.mygrid
>  .setfocus
> do while .relativerow # 1
>  .doscroll(1)
> enddo
>endwith
>this.setfocus
Cetin

Would not be easier just issue Grid.Refresh ? After this grid should show the current record on top of visible portion.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform