Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
PROCEDURE IsInMemo
PARAMETERS memField, strFind
PRIVATE x, wasFound, oldWidth, nTot, strPart
wasFound = .F.
oldWidth = SET("MEMOWIDTH")
SET MEMOWIDTH TO 70 && do not exceed 126 (126+1+126=253 chars)
mTot = MEMLINES(&memField)
FOR x = 1 TO mTot
strPart = MLINE(&memField, x)
IF " " $ strFind .AND. x+1 <= mTot
* combine 2 lines to search for multi-word
* insert space that MLINE() may have removed
strPart = strPart+" "+MLINE(&memField, x+1)
ENDIF
IF strFind $ strPart
wasFound = .T.
EXIT
ENDIF
NEXT
SET MEMOWIDTH TO &oldWidth
RETURN wasFound