Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid change position after Refresh
Message
De
15/01/1999 15:12:45
 
 
À
15/01/1999 15:08:21
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00176580
Message ID:
00176651
Vues:
26
>Thanks for replied Edward,
>I don't quite understand about what you mean by rewrite,
>But this is what I actually did,
>Grid.Init
>Create cursor mycursor (myfield1 C(100),myfield2 C(100))
>WITH this
>.RecordSource='mycursor'
>.RecordSourceType=1
>Endwith
>
>Listbox. interactivechange
>SELECT mycursor
>ZAP
>
>SELECT * from mytable into array myarray
>IF _TALLY<>0
>insert into mycursor from array myarray
>endif
>this.parent.mygrid.refresh()
>
>
>Then, the grid change it's position, it's still at the same position if I look at debugger window, but it change on screen, and what "messy" is the grid shape after refresh is overlapping by the grid before refresh.

You code looks Ok. I would just add around this.parent.mygrid.refresh():
select mycursor
go top
thisform.lockscreen=.t.
this.parent.mygrid.refresh()
this.parent.mygrid.setfocus
thisform.lockscreen=.f.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform