Answers for "find an element in a grid vfp"

0

find an element in a grid vfp

// Use this if you need find and select an item from a grid on vfp 9
// Make sure you put the right name of the textbox, the grid, and the column
//your'e searching for :)

PRIVATE strItem
STORE THISFORM.TEXTBOX.Value to strItem
SELECT (THISFORM.Grid1.RecordSource)
LOCATE FOR yourcolumn = strItem
IF FOUND() = .T.
	THISFORM.Grid1.SetFocus
ENDIF
Posted by: Guest on April-27-2021

Code answers related to "find an element in a grid vfp"

Browse Popular Code Answers by Language