Article ID: 117217
Article Last Modified on 7/13/2004
"This is a test of memo field text search program. If the test is successful, two occurrences will be found.."
SET TALK OFF
msrchstr=SPACE(5) && This variable can be any size. &&
USE clients
GO TOP
@ 1,10 GET msrchstr
READ
msrchstr=ALLTRIM(msrchstr)
m.occurrence=1
DO WHILE .t.
mfound=AT(msrchstr,Notes,m.occurrence)
IF mfound > 0
m.occurrence=m.occurrence+1
MODI MEMO notes NOWAIT RANGE mfound,mfound+LEN(msrchstr)
WAIT WINDOW 'Press any key to find next occurrence'
ELSE
WAIT WINDOW 'No more'
EXIT
ENDIF
ENDDO
SET TALK ON
Additional query words: highlight search find locate text string
Keywords: kbhowto kbdatabase kbdesigner KB117217