| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Removes duplicate characters from a string.
CharList( <cString> ) --> cResult
The function removes all duplicate characters from the input string and returns the result.
| See also: | CharHist(), CharNoList(), CharOne(), CharSList(), CharSort() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\charlist.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows results of CharList()
PROCEDURE Main
LOCAL cString1 := "xHarbour compiler"
LOCAL cString2 := "aabbbcccc"
? CharList( cString1 ) // result: xHarbou cmpile
? CharList( cString2 ) // result: abc
RETURN
http://www.xHarbour.com