GT_CHRFIRST()
Find which character occurs first in a string
- Syntax
-
- GT_ChrFirst(<cChars>, <cStr>) --> nAsc
- Arguments
-
- <cChars> - The set of characters to find <cStr> - The input string
- Returns
-
- <nAsc> - The ASCII value of the first character in <cChars> which appears first in <cStr>
- Description
-
- Return the ascii value of a character in <cChars> which appears first in <cStr>.
Examples
? chr(GT_ChrFirst("sa ", "This is a test")) // prints "s"
? chr(GT_ChrFirst("et", "This is a test")) // prints "t"
- Status
- Ready
- Files
-
- Library is libgt