>>Just a quickie as I've been bug-fixing all day and have gone brain-dead.
>
>Yes, I figured out something happened to your brain after reading your posts about Gore and Russia. <g>
>
>>
>>On p4 of my form I create a new set of Stops, with times, for a new variant of a bus route. I then send the results to a grid on p3 and set the focus on p3. But the grid is at the end of the list and I want it to be at the top.
>>
>>Bearing in mind I only have V7 how do I shoot to the top of the grid?
>>
>>'ppreciate it
>>
>>BTW locate in the cursor is no good as it's a set of m-to-m link records
>>.activatecell(1,1) does so but only to teh top of the records displayed in the grid.
>>
>
>
>I do not understand why a "GO TOP in" would not work.
Because the mechanism is called from another page from that in which the grid is built, and that in which the dynamic cursor is created. As I didn't know the name of the cursor from this page I couldn't use its alias.
Fabio had the right idea with:
Select ( grid.recordsource)
which I've included in the code below for illustration of my problem.
Like I said, just a quickie.
Cheers anyway.
With Thisform
.cmdClose.enabled = .T.
.cntNavButtons.Enabled = .T.
With .pgfMainPageFrame
.SetAll( "enabled", .T., "Page")
.Page4.enabled = .F.
With .Page3
.cmdSaveTime.enabled = .F.
.cmdEditTime.enabled = .T.
.cmdRepSeq.enabled = .T.
.cmdAddSeq.enabled = .T.
With .grdStopsTimes
.SetAll( "Enabled", .T., "Column")
.Column5.Enabled = .F.
.Column5.Text1.ReadOnly = .T.
Select ( .recordsource)
locate
.Refresh()
.ActivateCell(1,1)
EndWith
.Click()
.SetFocus()
EndWith
EndWith
EndWith
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.