f$IsCharIn (f$IstZeichenIn)
f$IsCharIn (f$IstZeichenIn)
This function checks if all characters in a given string are contained within another string. The order in which they appear is not important.
The function is case-sensitive. If you would like to perform a search irrespective of case, then you first have to convert the text using f$Upper or f$Lower.
Syntax: | CompResult = f$IsCharIn( SearchChar, Text ) | ||
| Argument | Type | Meaning |
| SearchChar | String | Character to be searched for |
| Text | String | Text to be searched through |
Result: | Logical | 1 if all characters from the search characters (SearchChar) are contained in the string (Text), otherwise 0 | |
Example: | CompRes = f$IsCharIn( 'c', 'abcde' ) → CompRes = 1 CompRes = f$IsCharIn( 'ec', 'abcde' ) → CompRes = 1 CompRes = f$IsCharIn( 'f', 'abcde' ) → CompRes = 0 | ||