General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only