WORDREM()
Removes characters from a string
- Syntax
-
- WORDREM (<cDeleteThisDoubleCharacters>, <cString>) -> cReducedString
- Arguments
-
- <cDeleteThisDoubleCharacters> specifies the double characters that should be deleted in <cString> <cString>) is the string that should be processed
- Returns
-
- <cReducedString> is a string where the double characters specified in <cDeleteThisDoubleCharacters> are deleted
- Description
-
- The WORDREM() function deletes the double characters specified in <cDeleteThisDoubleCharacters> from <cString>.
Examples
? WORDREM("abcd", "0ab1cd") // "0ab1"
? WORDREM("abcd", "ab0cd1") // "0cd1"
Tests
WORDREM("abcd", "0ab1cd") == "0ab1"
WORDREM("abcd", "ab0cd1") == "0cd1"
- Status
- Ready
- Compliance
-
- WORDREM() is a new function available only in Harbour's CT3.
- Platforms
-
- All
- Files
-
- Source is charonly.c, library is ct3.
- See Also