xHarbour Reference Documentation > Function Reference |
Searches strings on the screen and changes their color.
ScreenMark( <cSearch>, ; <xColor> , ; <lCase> , ; [<lAll>] , ; [<cPre>] , ; [<cPost>] ) --> lFound
The function returns .T. (true) when at lease one occurrance of the search string is color marked. Otherwise, .F. (false) is returned.
Note: the function leaves the cursor position unchanged.
See also: | ClearEol(), ColorWin() |
Category: | CT:Video , Screen functions |
Source: | ct\scrmark.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays a string and marks words in it PROCEDURE Main LOCAL cDelim := Chr( GetClearB() ) CLS @ 10,10 SAY "This is the xHarbour compiler" ScreenMark( "is", "W+/R", .F., .T., cDelim, cDelim ) ScreenMark( "xHarbour", "W+/B", .F. ) RETURN
http://www.xHarbour.com