*** Set up for highlighting current row loShell = CreateObject( 'WScript.Shell' ) lcColor = loShell.RegRead( 'HKCU\Control Panel\Colors\Hilight' ) lcBgColor = 'RGB( ' + STRTRAN( lcColor, ' ', ', ' ) + ' )' lcColor = loShell.RegRead( 'HKCU\Control Panel\Colors\HilightText' ) lcFgColor = 'RGB( ' + STRTRAN( lcColor, ' ', ', ' ) + ' )' lcNormalbg = 'RGB( ' + STRTRAN( loShell.RegRead( 'HKCU\Control Panel\Colors\Window' ), ' ', ', ' ) + ' )' lcNormalFg = 'RGB( ' + STRTRAN( loShell.RegRead( 'HKCU\Control Panel\Colors\WindowText' ), ' ', ', ' ) + ' )' This.nRecNo = RECNO( This.RecordSource ) This.SetAll( 'DynamicForeColor', ; "IIF( RECNO( This.RecordSource ) = This.nRecNo, " + lcFgColor + ", " + lcNormalFg + " )", 'COLUMN' ) This.SetAll( 'DynamicBackColor', ; "IIF( RECNO( This.RecordSource ) = This.nRecNo, " + lcBgColor + ", " + lcNormalBg + " )", 'COLUMN' )Code like this in BeforeRowColChange:
IF !This.lAbout2LeaveGrid This.nRecNo = 0 ENDIFCode like this in AfterRowColChange:
This.nRecNo = RECNO( This.RecordSource ) Thisform.LockScreen = .T. This.Refresh() Thisform.LockScreen = .F.HTH