Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid in relationship flashes last line when at eof()
have a grid whose record source is a child table. have the linkmaster, relationalexpression, and child order set. if parent table pointer moves to a record that has no child records, the grid will flash the last child record, and then correctly go blank. in the debugger the eof() and recno() of the child table indicate that it is at eof, but still the last record flashes. in the debugger the last record is still in the grid after all this code. seems to go blank at or after sitting on the readevents.
toplevelform.lockscreen = .t.
this.reestablish_parent_child_relationship && this is a page of pageframe
this.container1.removeobject("grid1","grid1")
this.container1.addobject ("grid1","grid1")
this.gorecno_parent() && read in ut to try this
this.container1.grid1.setfocus() &&read in ut to try this
this.container1.grid1.refresh()
this.focus
this.container1.refresh()
this.refresh()
this.container1.grid1.visible = .t.
toplevelform.lockscreen = .f.
realize some of this code may seem silly, but i am desperate. have tried without every line of above code except the removeobject and addobject. have also tried every possible combination of the above lines. parameterized view, sql, or query is not an option.
TIA
brenda
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement