Article ID: 140295
Article Last Modified on 2/10/2000
ThisForm.Grid1.SetFocus
ThisForm.LockScreen = .T.
IF ThisForm.Grid1.RelativeRow = 1
=MESSAGEBOX("You cannot do this replacement from the top "+;
"of the Grid.",16,"")
*: If the active grid cell is in the top row of the grid, this
*: will display a message to the user.
ELSE
RepField = FIELD(ThisForm.Grid1.ActiveColumn)
ColumnNumber = "Column"+ALLTRIM(STR(ThisForm.Grid1.ActiveColumn))
ThisForm.GRID1.ACTIVATECELL(ThisForm.GRID1.RELATIVEROW-1,;
ThisForm.GRID1.RELATIVECOLUMN)
RepValue = ThisForm.Grid1.&ColumnNumber..Text1.Value
ThisForm.GRID1.ACTIVATECELL(ThisForm.GRID1.RELATIVEROW+1,;
ThisForm.GRID1.RELATIVECOLUMN)
yesno = MESSAGEBOX("Are you certain that you wish to replace "+;
CHR(13)+"Field "+UPPER(repField)+" current value?",36,"")
IF yesno = 6
REPLACE &RepField WITH RepValue
ThisForm.REFRESH
ELSE
WAIT WINDOW "Replacement Canceled" NOWAIT
ENDIF
ENDIF
ThisForm.LockScreen = .F.
Additional query words: VFoxWin
Keywords: kbcode KB140295