xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CharList()

Removes duplicate characters from a string.

Syntax

CharList( <cString> ) --> cResult

Arguments

<cString>
This is the character string to process.

Return

The function removes all duplicate characters from the input string and returns the result.

Info

See also:CharHist(), CharNoList(), CharOne(), CharSList(), CharSort()
Category: CT:String manipulation , Character functions
Source:ct\charlist.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe