Article ID: 149609
Article Last Modified on 9/30/2003
CLOSE DATABASES
CLEAR
USE names
SCAN && Search through each record
FOR i = 1 TO FCOUNT() &&Search through each field
x = FIELD(i) && Assign the field name to a variable
IF UPPER(&;x) = "SMITH"
? &x + " " + FIELD(i) + " " + "Record # " ;
+ LTRIM(STR(RECNO()))
ENDIF && Insert needed IF ENDIF statements
NEXT i
ENDFOR
ENDSCAN
Additional query words: VFoxWin
Keywords: kbcode KB149609