xHarbour Reference Documentation > Function Reference |
Deletes characters from a string based on a mask string.
StrDel( <cString>, <Mask> ) --> cNewString
The function removes the characters from <cString> according to <cMask> and returns the resulting string.
See also: | StrTran(), SubStr() |
Category: | Character functions , xHarbour extensions |
Source: | rtl\strdel.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates return values of StrDel(). PROCEDURE Main LOCAL cString := "Hello World" ? StrDel( cString, "xx xx " ) // result: llWorld ? StrDel( cString, " xx xx " ) // result: Heo rld ? StrDel( cString, "x x x x x x" ) // result: el ol ? StrDel( cString, " x x x x x x" ) // result: HloWrd RETURN
http://www.xHarbour.com