StrFilter( )

Microsoft Visual FoxPro Foxtools

StrFilter( )

Removes all characters from a string except those specified.

Syntax

StrFilter(cString, cSearch)

cString

Specifies the character string to search.

cSearch

Specifies the characters to search for and retain in cString.

Return Type

Character

Remarks

StrFilter( ) removes all the characters from cString that aren't in cSearch, then returns the characters that remain. StrFilter( ) is case-sensitive.