Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works with Debug-ON else stays on same record

Status
Not open for further replies.

justamistere

Programmer
Jul 25, 2002
67
US
With the debugger on, my gridrowshow class refreshes, otherwise the "Find Next" process stays on the same record.
In the debugger the recno() is incremented and the grid-class refreshes fine.

I am calling a .prg from a drop-down menu selection/hot-key.

Whithin a "WHILE !llFound AND !EOF()...ENDSCAN", I have a "FOR lnI = lnColumnStart TO lnFieldCount".

First, I search the rest of the column, and then I set lnColumnStart to 1. I have the following code in the grid's AfterRowColChange() Event. "_gnActiveColumn" is a PUBLIC variable.

NODEFAULT

_gnActiveColumn = Thisform.grdData.ActiveColumn
WITH THIS
.nRecNo = RECNO(.GridAlias)
.Refresh()
ENDWITH

Any suggestions are appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top