This documentation is archived and is not being maintained.
strKeep Function
Builds a string from only the characters in the first input string that are specified to be kept by the second string.
str strKeep(str _text1, str _text2)
|
Parameter
|
Description
|
|
_text1
|
The string with the characters that can be used to build an output string.
|
|
_text2
|
The string that specified which characters must be kept for the output string.
|
A string of kept characters.
-
strKeep("ABBCDDEFGHB","BCD"); //Returns the text string BBCDDB.
-
strKeep(“abcZcba”,”bc”) //Returns the string bccb.
The strKeep function is complementary to the strRem function.